home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / SiteBuilding / ^DutchsHTMEditor 3.0 / DHTML.ds_ / DHTML.ds
Encoding:
INI File  |  1999-05-29  |  74.7 KB  |  2,550 lines

  1. [Do not delete or edit this document]
  2.  
  3. "Animated New Window"
  4. <1>Insert Part 3 in between <BODY>and</BODY> tags. You should have additional HTML document (index.html) to be shown in a new window!
  5. <2>
  6. <3>
  7. <4><script>
  8. <!--
  9.  
  10. var mylocation="../index.html"
  11. var winheight=100
  12. var winsize=100
  13. var x=5
  14.  
  15. function go(){
  16. win2=window.open("","","scrollbars")
  17. if (!document.layers&&!document.all){
  18. win2.location=mylocation
  19. return
  20. }
  21. win2.resizeTo(100,100)
  22. win2.moveTo(0,0)
  23. go2()
  24. }
  25. function go2(){
  26. if (winheight>=screen.availHeight-3)
  27. x=0
  28. win2.resizeBy(5,x)
  29. winheight+=5
  30. winsize+=5
  31. if (winsize>=screen.width-5){
  32. win2.location=mylocation
  33. winheight=100
  34. winsize=100
  35. x=5
  36. return
  37. }
  38. setTimeout("go2()",50)
  39. }
  40. //-->
  41. </script>
  42. <a href="javascript:go()" onMouseover="window.status='open window';return true" onMouseout="window.status=''" >Open window</a>
  43. <End>
  44.  
  45. "Highlighted Links"
  46. <1>Text - Links get highlighted.Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 3 in wherever in body of your document. Change YOUR URL and YOUR DESCRIPTION. You can also change font attributes and position (left, top, color...) 
  47. <2><STYLE type="text/css">
  48.     BODY {background-color: #000000}
  49.     A { text-decoration: none}
  50.     DIV { position: absolute }
  51.     DIV A { color: magenta }
  52.     DIV.title1a { position: absolute; left: 50; top: 20; z-index: 1;
  53.         color: red; font-weight: 800; visibility:hidden;
  54.         font-size: 24pt; font-family: arial}
  55.     DIV.title1b { position: absolute; left: 52; top: 22; z-index: 2;
  56.         color: magenta; font-weight: 800; 
  57.         font-size: 24pt; font-family: arial }
  58.     DIV.title2a { position: absolute; left: 50; top: 70; z-index: 1;
  59.         color: red; font-weight: 800; visibility: hidden;
  60.         font-size: 24pt; font-family: arial }
  61.     DIV.title2b { position: absolute; left: 52; top: 72; z-index: 2;
  62.         color: magenta; font-weight: 800;
  63.         font-size: 24pt; font-family: arial }
  64.     DIV.title3a { position: absolute; left: 50; top: 120; z-index: 1;
  65.         color: red; font-weight: 800; visibility: hidden;
  66.         font-size: 24pt; font-family: arial}
  67.     DIV.title3b { position: absolute; left: 52; top: 122; z-index: 2;
  68.         color: magenta; font-weight: 800;
  69.         font-size: 24pt; font-family: arial }
  70. </STYLE>
  71.  
  72. <SCRIPT language="javascript">
  73.  
  74. function show_element(item) {
  75.    if (navigator.appName == "Microsoft Internet Explorer")
  76.     document.all.item("title" + item).style.filter="shadow(color=#FF0000,direction=320)";
  77.    else
  78.     document.layers["title" + item + "a"].visibility="inherit";
  79. }
  80.  
  81. function hide_element(item) {
  82.    if (navigator.appName == "Microsoft Internet Explorer")
  83.     document.all.item("title" + item).style.filter="";
  84.    else
  85.     document.layers["title" + item + "a"].visibility="hidden";
  86. }
  87.  
  88. </SCRIPT>
  89. <3>
  90. <4><!-- Main Menu items -->
  91. <DIV id="title1a" class=title1a>
  92. DESCRIPTION #1
  93. </DIV>
  94. <DIV id="title1" class=title1b>
  95. <a href="YOUR URL #1" onmouseover="show_element(1)" 
  96.      onmouseout="hide_element(1)" 
  97.     onclick="return true">DESCRIPTION #1</a>
  98. </DIV>
  99.  
  100. <DIV id="title2a" class=title2a>
  101. DESCRIPTION #2
  102. </DIV>
  103. <DIV id="title2" class=title2b>
  104. <a href="YOUR URL #2" onmouseover="show_element(2)" 
  105.     onmouseout="hide_element(2)" 
  106.     onclick="return true">DESCRIPTION #2</a>
  107. </DIV>
  108.  
  109. <DIV id="title3a" class=title3a>
  110. DESCRIPTION #3
  111. </DIV>
  112. <DIV id="title3" class=title3b>
  113. <a href="YOUR URL #3" onmouseover="show_element(3)"
  114.     onmouseout="hide_element(3)"
  115.     onclick="return true">DESCRIPTION #3</a>
  116. </DIV>
  117. <End>
  118.  
  119. "Animation on Path"
  120. <1>Image is not an animated gif. Just insert your .jpg (yes .jpg) or .gif instead of YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT. Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()"> or <BODY onLoad="init()">. Insert Part 3 in wherever in body of your document.
  121.  
  122. <2><SCRIPT LANGUAGE = "JavaScript">
  123.  
  124. bName = navigator.appName;
  125.  
  126. bVer = parseInt(navigator.appVersion); 
  127.  
  128. if      (bName == "Netscape" && bVer == 4) ver = "n";
  129.  
  130. else if (bName == "Microsoft Internet Explorer" && bVer == 4) ver = "ie";
  131.  
  132. function init() {
  133.         if (ver == "n") {
  134.                 pic = document.picDiv
  135.                 pic.xcor = pic.left
  136.                 pic.ycor = pic.top
  137.         }
  138.         else if (ver == "ie") {
  139.                 pic = picDiv.style
  140.                 pic.xcor = pic.pixelLeft
  141.                 pic.ycor = pic.pixelTop
  142.         }
  143.  
  144. pic.pathx = new Array(64,78,105,146,203,263,334,392,432,463,476,466,445,416,385,352,344,343,319,279,272,276,273,244,202,167,132,107,78,54)
  145.  
  146. pic.pathy = new Array(74,102,135,159,186,197,203,207,185,154,121,80,64,57,59,81,109,138,153,140,114,89,53,43,42,45,54,35,26,52)
  147.  
  148. //Control Panel for Variables
  149.  
  150. pic.pathcor = 0                //don't change
  151.  
  152. pic.active = 1               // set to 1 to begin when page loads
  153.  
  154. pic.pathloop = 1            // set to 1 to loop, 0 not to loop
  155.  
  156. speed = .01                    // time between points in seconds
  157.  
  158. picpath()}
  159. function picpath() {
  160.         if (pic.active && pic.pathcor < pic.pathx.length) {
  161.                 pic.xcor = pic.pathx[pic.pathcor]
  162.                 pic.ycor = pic.pathy[pic.pathcor]
  163.                 pic.left = pic.xcor
  164.                 pic.top = pic.ycor
  165.                 pic.pathcor += 1
  166.                 setTimeout("picpath()",speed*1000) 
  167.         }
  168.  
  169.         else {
  170.         if (pic.active && pic.pathloop && pic.active) {
  171.             pic.pathcor = 0
  172.             picpath()
  173.             }
  174.             else pic.active = 0
  175.         }
  176. }
  177.  
  178. //-->
  179. </SCRIPT>
  180.  
  181. <STYLE TYPE="text/css">
  182.  
  183. <!--
  184.  
  185. #picDiv {position:absolute; left:101; top:285; width:90; height:90;}
  186.  
  187. -->
  188.  
  189. </STYLE>
  190. <3><BODY onLoad="init()">
  191. <4><DIV ID="picDiv"><img src="YOUR IMAGE FILE" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0></DIV>
  192. <End>
  193.  
  194. "Popout Menu #1"
  195. <1> Insert Part 1 in between<HEAD> and </HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()">  or <BODY onLoad="init()">.Insert Part 3 wherever in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, YOUR TEXT.
  196. <2><script language="JavaScript1.2">
  197.  
  198.  
  199.  
  200. if (document.layers) {n=1;ie=0}
  201.  
  202. if (document.all) {n=0;ie=1}
  203.  
  204.  
  205.  
  206. function init() {
  207.  
  208.         if (n) tab = document.tabDiv
  209.  
  210.         if (n) poptext = document.poptextDiv
  211.  
  212.         if (ie) tab = tabDiv.style
  213.  
  214.         if (ie) poptext = poptextDiv.style
  215.  
  216. }
  217.  
  218.  
  219.  
  220. var tabShow=1;
  221.  
  222.  
  223.  
  224. //Hide-Show Layer
  225.  
  226. function hidepoptext() {
  227.  
  228.  
  229.  
  230.         if (tabShow == 0) {
  231.  
  232.             if (n) {
  233.  
  234.                 tab.visibility = "hide";
  235.  
  236.                 tab.visibility = "show";
  237.  
  238.                 poptext.visibility = "hide";
  239.  
  240.                 tabShow = 1;
  241.  
  242.                 return;
  243.  
  244.                }
  245.  
  246.             if (ie) {
  247.  
  248.                 tab.visibility = "hidden";
  249.  
  250.                 tab.visibility = "visible";
  251.  
  252.                 poptext.visibility = "hidden";
  253.  
  254.                 tabShow = 1;
  255.  
  256.                 return;
  257.  
  258.            }
  259.  
  260.   }
  261.  
  262.                 
  263.  
  264.         if (tabShow == 1) {
  265.  
  266.             if (n) {
  267.  
  268.                 tab.visibility = "hide";
  269.  
  270.                 tab.visibility = "show";
  271.  
  272.                 poptext.visibility = "show";
  273.  
  274.                 tabShow = 0;
  275.  
  276.                       }
  277.  
  278.             if (ie) {
  279.  
  280.                 tab.visibility = "hidden";
  281.  
  282.                 tab.visibility = "visible";
  283.  
  284.                 poptext.visibility = "visible";
  285.  
  286.                 tabShow = 0;
  287.  
  288.                 }
  289.  
  290. }
  291.  
  292. }
  293.  
  294.  
  295.  
  296. </script>
  297.  
  298.  
  299.  
  300.  
  301.  
  302. <style>
  303.  
  304. <!--
  305.  
  306. #tabdiv {
  307.  
  308.         position:absolute;
  309.  
  310.         top:0px;
  311.  
  312.         left:0px;
  313.  
  314.         z-index:2;
  315.  
  316.         visibility:show;
  317.  
  318. }
  319.  
  320.  
  321.  
  322. #poptextdiv {
  323.  
  324.         visibility:hide;
  325.  
  326.         visibility:hidden;
  327.  
  328.         position:absolute;
  329.  
  330.         width:200px;
  331.  
  332.         top:15px;
  333.  
  334.         left:0px;
  335.  
  336.         z-index:0;
  337.  
  338.         color:white;
  339.  
  340.         border-color:black;
  341.  
  342.         border-width:2px;
  343.  
  344.         background-color:black;
  345.  
  346.         color:black;
  347.  
  348.         padding:10 5 10 5;
  349.  
  350.         z-index:1;
  351.  
  352.         
  353.  
  354. }
  355.  
  356.  
  357.  
  358. #maintext {
  359.  
  360.         position:absolute;
  361.  
  362.         top:10px;
  363.  
  364.         left:240px;
  365.  
  366.         width:470px;
  367.  
  368.         z-index:0;
  369.  
  370.  
  371.  
  372. }-->
  373.  
  374. </style>
  375.  
  376. <3><body onLoad="init()">
  377. <4>
  378. <div ID=tabDiv>
  379.  
  380. <a href="javascript:hidepoptext();"><IMG SRC="YOUR IMAGE FILE" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT ALT="" BORDER=0></a></div>
  381.  
  382. <!--Recomanded: width=200 height=25-->
  383.  
  384.  
  385. <div ID=poptextDiv>
  386.  
  387. <font size="+1" color="White">
  388.  
  389. News Briefs<br>
  390.  
  391. Feature Stories<br>
  392.  
  393. Exploration<br>
  394.  
  395. Mind Games<br>
  396.  
  397. Animal Cams<br>
  398.  
  399. </font>
  400.  
  401. </div>
  402.  
  403.  
  404.  
  405. <div ID=maintext>
  406.  
  407. <font color="Black">
  408. Here's the pull down menu for both 4.0 browsers. This is a very simple example of what can be done with pop-out menus.
  409.  
  410. </font>
  411.  
  412. </div>
  413. <End>
  414.  
  415. "Popout Menu #2"
  416. <1>Insert Part 1 in between<HEAD> and </HEAD> tags, insert Part 2 inside your body tag. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()">  or <BODY onLoad="init()">.Insert Part 3 wherever in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, YOUR TEXT.
  417. <2><script language="JavaScript1.2">
  418.  
  419. if (document.layers) {n=1;ie=0}
  420. if (document.all) {n=0;ie=1}
  421.  
  422. function init() {
  423.         if (n) tab = document.tabDiv
  424.         if (n) poptext = document.poptextDiv
  425.         if (ie) tab = tabDiv.style
  426.         if (ie) poptext = poptextDiv.style
  427. }
  428.  
  429. var tabShow=1;
  430.  
  431. //Hide-Show Layer
  432. function hidepoptext() {
  433.  
  434.         if (tabShow == 1) {
  435.             if (n) {
  436.                 tab.visibility = "hide";
  437.                 tab.left = 0;
  438.                 tab.visibility = "show";
  439.                 poptext.visibility = "hide";
  440.                 tabShow = 0;
  441.                 return;
  442.                }
  443.             if (ie) {
  444.                 tab.visibility = "hidden";
  445.                 tab.left = 0;
  446.                 tab.visibility = "visible";
  447.                 poptext.visibility = "hidden";
  448.                 tabShow = 0;
  449.                 return;
  450.            }
  451.   }
  452.                 
  453.         if (tabShow == 0) {
  454.             if (n) {
  455.                 tab.visibility = "hide";
  456.                 tab.left = 223;
  457.                 tab.visibility = "show";
  458.                 poptext.visibility = "show";
  459.                 tabShow = 1;
  460.                       }
  461.             if (ie) {
  462.                 tab.visibility = "hidden";
  463.                 tab.left = 223;
  464.                 tab.visibility = "visible";
  465.                 poptext.visibility = "visible";
  466.                 tabShow = 1;
  467.                 }
  468. }
  469. }
  470.  
  471. </script>
  472.  
  473. <style>
  474. <!--
  475. #tabdiv {
  476.         position:absolute;
  477.         top:20px;
  478.         left:223px;
  479.         z-index:2;
  480.         visibility:show;
  481. }
  482.  
  483. #poptextdiv {
  484.         visibility:show;
  485.         position:absolute;
  486.         width:223px;
  487.         top:10px;
  488.         left:0px;
  489.         z-index:0;
  490.         border-color:#000099;
  491.         border-width:2px;
  492.         background-color:#eeeeff;
  493.         color:black;
  494.         padding:10 5 10 5;
  495.         z-index:1;
  496.         
  497. }
  498.  
  499. #maintext {
  500.         position:absolute;
  501.         top:30px;
  502.         left:40px;
  503.         width:670px;
  504.         z-index:0;
  505.  
  506. }-->
  507. </style>
  508.  
  509. <3><body onLoad="init()">
  510. <4><div ID=maintext>
  511. This is a very simple example of what can be done with pop-out menus.
  512. This is a very simple example of what can be done with pop-out menus.
  513. This is a very simple example of what can be done with pop-out menus.
  514. This is a very simple example of what can be done with pop-out menus.
  515. This is a very simple example of what can be done with pop-out menus.
  516. </div>
  517.  
  518. <div ID=tabDiv>
  519. <a href="javascript:hidepoptext();"><img src="YOUR IMAGE FILE" width=YOUR WIDTH height=YOUR HEIGHT alt="tab" border="0"></a>
  520. </div>
  521. <!--Recomanded: WIDTH=15 HEIGHT=165-->
  522.  
  523. <div ID=poptextDiv>
  524. Pop Out text appears here.  This DIV can contain graphics or text or any other HTML element you would like to include.  By placing several popout menus like this down the side of the screen you can make large amounts of information available to people only when they need it.  Being able to customize an interface like this is yet another demonstration of the power in DHTML.
  525. </div>
  526. <End>
  527.  
  528. "Left-Right Stripy Curtain"
  529. <1>Insert Part 1 in between<HEAD> and </HEAD> tags and Part 3 wherever in body of your document. 
  530. <2><style>
  531. <!--
  532. .intro{
  533. position:absolute;
  534. left:0;
  535. top:0;
  536. layer-background-color:blue;
  537. background-color:blue;
  538. border:0.1px solid blue
  539. }
  540. -->
  541. </style>
  542. <3>
  543. <4><div id="i1" class="intro"></div><div id="i2" class="intro"></div><div id="i3"
  544. class="intro"></div><div id="i4" class="intro"></div><div id="i5" class="intro"></div><div
  545. id="i6" class="intro"></div><div id="i7" class="intro"></div><div id="i8" class="intro"></div>
  546. <script language="JavaScript1.2">
  547.  
  548. var speed=20
  549. var temp=new Array()
  550. var temp2=new Array()
  551. if (document.layers){
  552. for (i=1;i<=8;i++){
  553. temp[i]=eval("document.i"+i+".clip")
  554. temp2[i]=eval("document.i"+i)
  555. temp[i].width=window.innerWidth
  556. temp[i].height=window.innerHeight/8
  557. temp2[i].top=(i-1)*temp[i].height
  558. }
  559. }
  560. else if (document.all){
  561. var clipright=document.body.clientWidth,clipleft=0
  562. for (i=1;i<=8;i++){
  563. temp[i]=eval("document.all.i"+i+".style")
  564. temp[i].width=document.body.clientWidth
  565. temp[i].height=document.body.offsetHeight/8
  566. temp[i].top=(i-1)*parseInt(temp[i].height)
  567. }
  568. }
  569. function openit(){
  570. window.scrollTo(0,0)
  571. if (document.layers){
  572. for (i=1;i<=8;i=i+2)
  573. temp[i].right-=speed
  574. for (i=2;i<=8;i=i+2)
  575. temp[i].left+=speed
  576. if (temp[2].left>window.innerWidth)
  577. clearInterval(stopit)
  578. }
  579. else if (document.all){
  580. clipright-=speed
  581. for (i=1;i<=8;i=i+2){
  582. temp[i].clip="rect(0 "+clipright+" auto 0)"
  583. }
  584. clipleft+=speed
  585. for (i=2;i<=8;i=i+2){
  586. temp[i].clip="rect(0 auto auto "+clipleft+")"
  587. }
  588. if (clipright<=0)
  589. clearInterval(stopit)
  590. }
  591. }
  592. function gogo(){
  593. stopit=setInterval("openit()",100)
  594. }
  595. gogo()
  596. </script>
  597. <End>
  598.  
  599. "Launch Scroll Window"
  600. <1>Insert Part 1 in between<HEAD> and </HEAD> tags and Part 3 in between <BODY>and</BODY> tags. You should have additional HTML document (scroll.html) to be shown in a new window!
  601. <2><SCRIPT LANGUAGE="JavaScript">
  602. <!--
  603. function Launch(){
  604.  
  605.         window.open("scroll.html","JSPGSCRL","toolbar=no,location=no,directories=no,menubar=no,resizable=no,width=500,height=400,scrollbars=yes,status=no");
  606. }
  607. // -->
  608. </SCRIPT>
  609. <3>
  610. <4>
  611. <A HREF="JavaScript:Launch()">Click here to launch scrolling window</A>
  612. <End>
  613.  
  614. "Marquee"
  615. <1>Insert Part 3 in between <BODY>and</BODY> tags. Change message and link(s). 
  616. <2>
  617. <3>
  618. <4><script language="JavaScript1.2">
  619.  
  620. //Specify the marquee's width (in pixels)
  621. var marqueewidth=150
  622. //Specify the marquee's height
  623. var marqueeheight=150
  624. //Specify the marquee's scroll speed (larger is faster)
  625. var speed=2
  626. //Specify the marquee contents
  627. var marqueecontents='<font face="Arial"><strong><big>Thank you for visiting <a href="http://www.admin.rosemont.edu/dutchsoftware">Dutch Software.</a> If you find this program useful, please register it. That way I would be able to continue developing and offer more features and other programs!</big></strong></font>'
  628.  
  629. if (document.all)
  630. document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
  631.  
  632. function regenerate(){
  633. window.location.reload()
  634. }
  635. function regenerate2(){
  636. if (document.layers){
  637. setTimeout("window.onresize=regenerate",450)
  638. intializemarquee()
  639. }
  640. }
  641.  
  642. function intializemarquee(){
  643. document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
  644. document.cmarquee01.document.cmarquee02.document.close()
  645. thelength=document.cmarquee01.document.cmarquee02.document.height
  646. scrollit()
  647. }
  648.  
  649. function scrollit(){
  650. if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
  651. document.cmarquee01.document.cmarquee02.top-=speed
  652. setTimeout("scrollit()",100)
  653. }
  654. else{
  655. document.cmarquee01.document.cmarquee02.top=marqueeheight
  656. scrollit()
  657. }
  658. }
  659.  
  660. window.onload=regenerate2
  661. </script>
  662.  
  663. <ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
  664. <layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>
  665. </ilayer> 
  666. <End>
  667.  
  668. "Scroller"
  669. <1>Insert Part 3 in between <BODY>and</BODY> tags and change message. Change messages (Your link description goes here #1)and links (Link1...).
  670. <2>
  671. <3>
  672. <4><script language="JavaScript1.2">
  673.  
  674. //configure the below three variables to change the style of the scroller
  675. var scrollerwidth=150
  676. var scrollerheight=120
  677. var scrollerbgcolor='lightyellow'
  678.  
  679. //configure the below variable to change the contents of the scroller
  680. var messages=new Array()
  681. messages[0]="<font face='Arial'><a href='Link1'>Your link description goes here #1</a></font>"
  682. messages[1]="<font face='Arial'><a href='Link2'>Your link description goes here #2</a></font>"
  683. messages[2]="<font face='Arial'><a href='Link3'>Your link description goes here #3</a></font>"
  684. messages[3]="<font face='Arial'><a href='Link4'>Your link description goes here #4</a></font>"
  685. messages[4]="<font face='Arial'><a href='Link5'>Your link description goes here #5</a></font>"
  686.  
  687. ///////Do not edit pass this line///////////////////////
  688.  
  689. if (messages.length>1)
  690. i=2
  691. else
  692. i=0
  693.  
  694. function move1(whichlayer){
  695. tlayer=eval(whichlayer)
  696. if (tlayer.top>0&&tlayer.top<=5){
  697. tlayer.top=0
  698. setTimeout("move1(tlayer)",3000)
  699. setTimeout("move2(document.main.document.second)",3000)
  700. return
  701. }
  702. if (tlayer.top>=tlayer.document.height*-1){
  703. tlayer.top-=5
  704. setTimeout("move1(tlayer)",100)
  705. }
  706. else{
  707. tlayer.top=scrollerheight
  708. tlayer.document.write(messages[i])
  709. tlayer.document.close()
  710. if (i==messages.length-1)
  711. i=0
  712. else
  713. i++
  714. }
  715. }
  716.  
  717. function move2(whichlayer){
  718. tlayer2=eval(whichlayer)
  719. if (tlayer2.top>0&&tlayer2.top<=5){
  720. tlayer2.top=0
  721. setTimeout("move2(tlayer2)",3000)
  722. setTimeout("move1(document.main.document.first)",3000)
  723. return
  724. }
  725. if (tlayer2.top>=tlayer2.document.height*-1){
  726. tlayer2.top-=5
  727. setTimeout("move2(tlayer2)",100)
  728. }
  729. else{
  730. tlayer2.top=scrollerheight
  731. tlayer2.document.write(messages[i])
  732. tlayer2.document.close()
  733. if (i==messages.length-1)
  734. i=0
  735. else
  736. i++
  737. }
  738. }
  739.  
  740. function move3(whichdiv){
  741. tdiv=eval(whichdiv)
  742. if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
  743. tdiv.style.pixelTop=0
  744. setTimeout("move3(tdiv)",3000)
  745. setTimeout("move4(second2)",3000)
  746. return
  747. }
  748. if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
  749. tdiv.style.pixelTop-=5
  750. setTimeout("move3(tdiv)",100)
  751. }
  752. else{
  753. tdiv.style.pixelTop=scrollerheight
  754. tdiv.innerHTML=messages[i]
  755. if (i==messages.length-1)
  756. i=0
  757. else
  758. i++
  759. }
  760. }
  761.  
  762. function move4(whichdiv){
  763. tdiv2=eval(whichdiv)
  764. if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
  765. tdiv2.style.pixelTop=0
  766. setTimeout("move4(tdiv2)",3000)
  767. setTimeout("move3(first2)",3000)
  768. return
  769. }
  770. if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
  771. tdiv2.style.pixelTop-=5
  772. setTimeout("move4(second2)",100)
  773. }
  774. else{
  775. tdiv2.style.pixelTop=scrollerheight
  776. tdiv2.innerHTML=messages[i]
  777. if (i==messages.length-1)
  778. i=0
  779. else
  780. i++
  781. }
  782. }
  783.  
  784. function startscroll(){
  785. if (document.all){
  786. move3(first2)
  787. second2.style.top=scrollerheight
  788. }
  789. else if (document.layers){
  790. move1(document.main.document.first)
  791. document.main.document.second.top=scrollerheight+5
  792. document.main.document.second.visibility='show'
  793. }
  794. }
  795.  
  796. window.onload=startscroll
  797.  
  798. </script>
  799.  
  800. <ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor};>
  801. <layer id="first" left=0 top=1 width=&{scrollerwidth};>
  802. <script language="JavaScript1.2">
  803. if (document.layers)
  804. document.write(messages[0])
  805. </script>
  806. </layer>
  807. <layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>
  808. <script language="JavaScript1.2">
  809. if (document.layers)
  810. document.write(messages[1])
  811. </script>
  812. </layer>
  813. </ilayer>
  814.  
  815. <script language="JavaScript1.2">
  816. if (document.all){
  817. document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">')
  818. document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
  819. document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
  820. document.write(messages[0])
  821. document.writeln('</div>')
  822. document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0">')
  823. document.write(messages[1])
  824. document.writeln('</div>')
  825. document.writeln('</div>')
  826. document.writeln('</span>')
  827. }
  828. </script>
  829. <End>
  830.  
  831. "Sliding Menu Bar"
  832. <1>Insert Part 1 in between <HEAD>and</HEAD> tags. Insert Part 3 in between <BODY>and</BODY> tags. Change items (ITEM #1...)and links (LINK #1...).
  833. <2><style>
  834. <!--
  835.  
  836. #slidemenubar, #slidemenubar2{
  837. position:absolute;
  838. left:-155px;
  839. width:160px;
  840. top:170px;
  841. border:1.5px solid green;
  842. background-color:lightyellow;
  843. layer-background-color:lightyellow;
  844. font:bold 12px Verdana;
  845. line-height:20px;
  846. }
  847. -->
  848. </style>
  849. <3>
  850. <4><script language="JavaScript1.2">
  851.  
  852. if (document.all)
  853. document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">')
  854. </script>
  855. <layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
  856. <script language="JavaScript1.2">
  857. var sitems=new Array()
  858. var sitemlinks=new Array()
  859.  
  860. //extend or shorten this list
  861. sitems[0]="ITEM #1"
  862. sitems[1]="ITEM #2"
  863. sitems[2]="ITEM #3"
  864. sitems[3]="ITEM #4"
  865. sitems[4]="ITEM #5"
  866. sitems[5]="ITEM #6"
  867. sitems[6]="ITEM #7"
  868. sitems[7]="ITEM #8"
  869. sitems[8]="ITEM #9"
  870. sitems[9]="ITEM #10"
  871. sitems[10]="ITEM #11"
  872. sitems[11]="ITEM #12"
  873. sitems[12]="ITEM #13"
  874.  
  875. //These are the links pertaining to the above text.
  876. sitemlinks[0]="LINK #1"
  877. sitemlinks[1]="LINK #2"
  878. sitemlinks[2]="LINK #3"
  879. sitemlinks[3]="LINK #4"
  880. sitemlinks[4]="LINK #5"
  881. sitemlinks[5]="LINK #6"
  882. sitemlinks[6]="LINK #7"
  883. sitemlinks[7]="LINK #8"
  884. sitemlinks[8]="LINK #9"
  885. sitemlinks[9]="LINK #10"
  886. sitemlinks[10]="LINK #11"
  887. sitemlinks[11]="LINK #12"
  888. sitemlinks[12]="LINK #13"
  889.  
  890. for (i=0;i<=sitems.length-1;i++)
  891. document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>')
  892. </script>
  893. </layer>
  894. <script language="JavaScript1.2">
  895. function regenerate(){
  896. window.location.reload()
  897. }
  898. function regenerate2(){
  899. if (document.layers)
  900. setTimeout("window.onresize=regenerate",400)
  901. }
  902. window.onload=regenerate2
  903. if (document.all){
  904. document.write('</div>')
  905. themenu=document.all.slidemenubar2.style
  906. rightboundary=0
  907. leftboundary=-150
  908. }
  909. else{
  910. themenu=document.layers.slidemenubar
  911. rightboundary=150
  912. leftboundary=10
  913. }
  914. function pull(){
  915. if (window.drawit)
  916. clearInterval(drawit)
  917. pullit=setInterval("pullengine()",50)
  918. }
  919. function draw(){
  920. clearInterval(pullit)
  921. drawit=setInterval("drawengine()",50)
  922. }
  923. function pullengine(){
  924. if (document.all&&themenu.pixelLeft<rightboundary)
  925. themenu.pixelLeft+=5
  926. else if(document.layers&&themenu.left<rightboundary)
  927. themenu.left+=5
  928. else if (window.pullit)
  929. clearInterval(pullit)
  930. }
  931. function drawengine(){
  932. if (document.all&&themenu.pixelLeft>leftboundary)
  933. themenu.pixelLeft-=5
  934. else if(document.layers&&themenu.left>leftboundary)
  935. themenu.left-=5
  936. else if (window.drawit)
  937. clearInterval(drawit)
  938. }
  939. </script>
  940. <End>
  941.  
  942. ==========NN4=========================================
  943.  
  944. "Sliding Layers"
  945. <1>This DHTML script moves your image over screen. Image is not an animated gif. Just insert your .jpg (yes .jpg) or .gif instead of YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT and YOUR ALT TEXT. Insert Part 1 in between<HEAD> and </HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onload="moveLayer(document.layers['ie_gear'],-4,-4,4,20)"> or <body onload="moveLayer(document.layers['ie_gear'],-4,-4,4,20)">. Insert Part 3 in wherever in body of your document.
  946. <2><script language="JavaScript">
  947. function moveLayer(lyr,xadder,yadder,xend,timer) {
  948.  lyr.top += yadder
  949.  lyr.left += xadder
  950.  if (((xadder > 0) && (lyr.left < xend)) ||
  951.      ((xadder < 0) && (lyr.left > xend))) {
  952.       setTimeout('moveLayer(document.layers["'+lyr.name+'"],'+xadder+','+yadder+','+xend+','+timer+')',timer)
  953.      }
  954. }
  955. </script>
  956. <3><body onload="moveLayer(document.layers['ie_gear'],-4,-4,4,20)">
  957. <4><layer name="ie_gear" top=100 left=100 visibility=show>
  958. <img src="YOUR IMAGE FILE" width=YOUR WIDTH height=YOUR HEIGHT alt="YOUR ALT. TEXT">
  959. </layer>
  960. <End>
  961.  
  962. "Image Gallery"
  963. <1>Insert Part 1 in between<HEAD> and </HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()">  or <BODY onLoad="init()">.Insert Part 3 wherever in body of your document.Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, and eventualy Link Text (Go To) Layer 1, (2),(3).
  964. <2><SCRIPT LANGUAGE="JavaScript">     //Define global variables
  965.      var totalLayersInLoop=3;
  966.     var layerNumShowing=1;
  967.     function init(){
  968.              if (navigator.appName == "Netscape") {
  969.             layerStyleRef="layer.";
  970.              layerRef="document.layers";
  971.             styleSwitch="";
  972.             }else{
  973.              layerStyleRef="layer.style.";
  974.             layerRef="document.all";
  975.              styleSwitch=".style";
  976.             }     }
  977.  
  978.     function showLayerNumber(number){
  979.          var layerNumToShow=number;
  980.         hideLayer(eval('"layer' + layerNumShowing+'"'));
  981.          showLayer(eval('"layer' + layerNumToShow+'"'));
  982.          layerNumShowing=layerNumToShow;         }
  983.         
  984.     function showPreviousLayer(){
  985.          var layerNumToShow=layerNumShowing-1;
  986.          if (layerNumToShow < 1){layerNumToShow=totalLayersInLoop;}
  987.          hideLayer(eval('"layer' + layerNumShowing+'"'));
  988.          showLayer(eval('"layer' + layerNumToShow+'"'));
  989.          layerNumShowing=layerNumToShow;     }
  990.  
  991.     function showNextLayer(){
  992.          var layerNumToShow=layerNumShowing+1;
  993.          if (layerNumToShow > totalLayersInLoop){layerNumToShow=1;}
  994.          hideLayer(eval('"layer' + layerNumShowing+'"'));
  995.          showLayer(eval('"layer' + layerNumToShow+'"'));
  996.          layerNumShowing=layerNumToShow;     }
  997.  
  998.     function showLayer(layerName){
  999.          eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');     }     
  1000.  
  1001.     function hideLayer(layerName){
  1002.  
  1003.          eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');     } 
  1004.  
  1005.  </SCRIPT>
  1006.  
  1007.  <STYLE TYPE="text/css">
  1008.  
  1009.  #layer1 {POSITION: absolute; Z-INDEX: 10; VISIBILITY: visible; LEFT: 50px; TOP: 80px;}
  1010.  #layer2 {POSITION: absolute; Z-INDEX: 20; VISIBILITY: hidden; LEFT: 50px; TOP: 80px;}
  1011.  #layer3 {POSITION: absolute; Z-INDEX: 30; VISIBILITY: hidden; LEFT: 50px; TOP: 80px;}
  1012.  #loopControls {POSITION: absolute; Z-INDEX: 40; VISIBILITY: visible; LEFT: 550px; TOP: 20px;}
  1013.   </STYLE>
  1014. <3><BODY onLoad="init()">  <!--layers in the loop-->
  1015. <4><!--layer 1-->
  1016.     <DIV ID="layer1" >
  1017.  
  1018.          <IMG SRC="IMAGE #1" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>    
  1019.  
  1020.      </DIV>
  1021.  
  1022.        <!--layer 2-->
  1023.      <DIV ID="layer2" >
  1024.  
  1025.          <IMG SRC="IMAGE #2" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>    
  1026.  
  1027.      </DIV>
  1028.  
  1029.     <!--layer 3-->
  1030.      <DIV ID="layer3" >
  1031.  
  1032.          <IMG SRC="IMAGE #3" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>    
  1033.     
  1034.      </DIV>
  1035.  
  1036.     <!--looping layer controls-->
  1037.  
  1038. <DIV ID="loopControls" >
  1039. <A HREF="javascript:showPreviousLayer()">Previous</a>  <BR>
  1040. <A HREF="javascript:showNextLayer()">Next</a> <BR>
  1041. <A HREF="javascript:showLayerNumber(1)">Go To Layer 1</a> <BR>
  1042. <A HREF="javascript:showLayerNumber(2)">Go To Layer 2</a> <BR>
  1043. <A HREF="javascript:showLayerNumber(3)">Go To Layer 3</a> <BR>              </DIV>
  1044. <End>
  1045.  
  1046. "Preview"
  1047. <1>Contest or Preview of your page. Insert Part 1 in between<HEAD> and </HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()">  or <BODY onLoad="init()">.Insert Part 3 wherever in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, YOUR TEXT.
  1048. <2><!--This is the Seq Remember 15=1.5 seconds-->
  1049. <SCRIPT LANGUAGE = "JavaScript">
  1050. //don't change
  1051. function startSeq(SeqNumber) {
  1052.   Time[SeqNumber] = 0;
  1053.   SeqController(SeqNumber);
  1054. }
  1055.  
  1056. //dont't change
  1057. function stopSeq(SeqNumber){
  1058.    Time[SeqNumber] = Seq[SeqNumber].length;
  1059. }
  1060.  
  1061. //don't change
  1062. function SeqController(SeqNumber) {
  1063.     if (Time[SeqNumber] <= Seq[SeqNumber].length - 1) {
  1064.       Time[SeqNumber]++;
  1065.         if (Seq[SeqNumber][Time[SeqNumber]] != null){
  1066.           eval(Seq[SeqNumber][Time[SeqNumber]]);
  1067.         }
  1068.         setTimeout('SeqController(' + SeqNumber + ')', 100);
  1069.     }
  1070. }
  1071.  
  1072. //don't change
  1073. function init() {
  1074.   Time = new Array();
  1075.   Seq = new Array();
  1076.  
  1077. Seq[0] = new Array();
  1078. Seq[0][10] = 'pic1_show();';
  1079. Seq[0][15] = 'pic2_show();';
  1080. Seq[0][25] = 'pic3_show();';
  1081. Seq[0][35] = 'wipe();';
  1082. Seq[0][45] = 'animateie();';
  1083. Seq[0][65] = 'animatedhtml();';
  1084. Seq[0][90] = 'pic4_show();';
  1085. Seq[0][100] = 'pic5_show();';
  1086. Seq[0][110] = 'pic6_show();';
  1087.  
  1088. //don't change
  1089. startSeq(0);
  1090. }
  1091.  
  1092. var totalTime, currTime;
  1093. var Time, Seq;
  1094.  
  1095. </SCRIPT>
  1096.  
  1097. <!--Layer Wipe-->
  1098. <script language="JavaScript">
  1099. function curtainWidth(lyr,xinc,inctime,stopwidth) {
  1100. lyr.clip.left += -(xinc/2)
  1101. lyr.clip.right += (xinc/2)
  1102. if (lyr.clip.width < 0) {lyr.clip.width = 0}
  1103. if (((xinc < 0) && (lyr.clip.width > stopwidth)) || 
  1104.     ((xinc > 0) && (lyr.clip.width < stopwidth))) {
  1105.   setTimeout('curtainWidth(document.layers["'+lyr.name+'"],'+xinc+','+inctime+','+stopwidth+')',inctime)     
  1106.  }
  1107. }
  1108.  
  1109. function slideLayer(lyr,xinc,yinc,inctime,xstop) {
  1110.  lyr.top += yinc
  1111.  lyr.left += xinc
  1112.  if (((xinc > 0) && (lyr.left < xstop)) ||
  1113.      ((xinc < 0) && (lyr.left > xstop))) {
  1114.       setTimeout('slideLayer(document.layers["'+lyr.name+'"],'+xinc+','+yinc+','+inctime+','+xstop+')',inctime)
  1115.      }
  1116. }
  1117. </script>
  1118.  
  1119. <script language="JavaScript1.2">
  1120. function wipe() {
  1121.     curtainWidth(document.layers['pic1'],-6,15,0);
  1122.     curtainWidth(document.layers['pic2'],-6,15,0);
  1123.     }
  1124. </script>
  1125.  
  1126. <script language="JavaScript1.2">
  1127. function animateie() {
  1128.     slideLayer(document.layers['pic3'],-6,-4,50,10);
  1129.     }
  1130. </script>
  1131.  
  1132. <script language="JavaScript1.2">
  1133.  
  1134. function animatedhtml() {
  1135.     document.pic3andahalf.visibility = "show"
  1136.     slideLayer(document.layers['pic3andahalf'],-4,-.001,20,105);
  1137.     }
  1138. </script>
  1139.  
  1140. <script language="JavaScript1.2">
  1141.  
  1142. function pic1_show() {
  1143.     document.pic1.visibility = "show"
  1144. }
  1145.  
  1146. function pic2_show() {
  1147.     document.pic2.visibility = "show"
  1148. }
  1149.  
  1150. function pic3_show() {
  1151.     document.pic3.visibility = "show"
  1152. }
  1153.  
  1154. function pic4_show() {
  1155.     document.pic4.visibility = "show"
  1156. }
  1157.  
  1158. function pic5_show() {
  1159.     document.pic5.visibility = "show"
  1160. }
  1161.  
  1162. function pic6_show() {
  1163.     document.pic6.visibility = "show"
  1164. }
  1165.  
  1166. function pic2_hide() {
  1167.     document.pic2.visibility = "hide"
  1168. }
  1169. </script>
  1170. <3><BODY onLoad = "init()">
  1171. <4><layer
  1172.     name="pic1"
  1173.      left= 95
  1174.      top= 50
  1175.      z-index= 1
  1176.     visibility= hide
  1177.     clipwidth=400
  1178.     width=400>
  1179. <font face="Impact" size="+4" color="#FFFFFF">YOUR TEXT</font>
  1180. </layer>
  1181.  
  1182. <layer
  1183.     name="pic2"
  1184.      left= 105
  1185.      top= 250
  1186.      z-index= 1
  1187.     visibility= hide
  1188.     clipwidth=400
  1189.     width=400>
  1190. <font face="Impact" size="+4" color="#FFFFFF">YOUR TEXT</font>
  1191. </layer>
  1192.  
  1193. <layer
  1194.     name="pic3"
  1195.      left= 195
  1196.      top= 137
  1197.      z-index= 1
  1198.      visibility= hide
  1199.     clipwidth=90
  1200.     width=90>
  1201. <IMG ID="iegear" SRC="YOUR IMAGE #1" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>
  1202. </layer>
  1203.  
  1204. <layer
  1205.     name="pic3andahalf"
  1206.      left= 400
  1207.      top= 35
  1208.      z-index= 1
  1209.      visibility= hide
  1210.     clipwidth=251
  1211.     width=251>
  1212. <IMG SRC="YOUR IMAGE #2" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>
  1213. </layer>
  1214.  
  1215. <layer
  1216.     name="pic4"
  1217.     left= 125
  1218.      top= 120
  1219.      z-index= 1
  1220.      visibility= hide
  1221.     clipwidth=500
  1222.     width=500>
  1223. <IMG SRC="YOUR IMAGE #3" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>
  1224. </layer>
  1225.  
  1226. <layer
  1227.     name="pic5"
  1228.      left= 125
  1229.      top= 185
  1230.      z-index= 1
  1231.      visibility= hide
  1232.     clipwidth=500
  1233.     width=500>
  1234.  
  1235. <IMG SRC="YOUR IMAGE #4" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>
  1236. </layer>
  1237.  
  1238. <layer
  1239.     name="pic6"
  1240.     left= 125
  1241.      top= 250
  1242.      z-index= 1
  1243.      visibility= hide
  1244.      clipwidth=500
  1245.     width=500>
  1246.  
  1247. <IMG SRC="YOUR IMAGE #4" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0>
  1248. </layer>
  1249. <End>
  1250.  
  1251. "Drag Text and Image"
  1252. <1>This script enables you to drag text and (or) image (.gif).Insert Part 1 in your head tags and Part 3 in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, YOUR TEXT.
  1253. <2><LINK REL=STYLESHEET TYPE="text/css" 
  1254.     HREF="dhtml.css" TITLE="style1">
  1255.  
  1256. <STYLE>
  1257.     A {text-decoration: none; color: firebrick}
  1258. </STYLE>
  1259. <SCRIPT language="javascript1.2">    
  1260.  
  1261. current_object = null;
  1262. last_object = null;
  1263. objectX = 0;
  1264. objectY = 0;
  1265.  
  1266. function key_press(e) {
  1267.     last_object.zIndex=5;    
  1268. }
  1269.  
  1270. function begin_event(object,e) {
  1271.         current_object = object;
  1272.         objectX = e.pageX;
  1273.         objectY = e.pageY;
  1274.         window.captureEvents(Event.MOUSEMOVE);
  1275.  
  1276. }
  1277. function drag_event(e) {
  1278.     if (current_object != null) {
  1279.         current_object.left = current_object.left + (e.pageX - objectX);
  1280.         current_object.top = current_object.top + (e.pageY - objectY);
  1281.         objectX = e.pageX;
  1282.         objectY = e.pageY;
  1283.     }
  1284.     return false;
  1285. }
  1286.  
  1287. function end_event() {
  1288.     window.releaseEvents(Event.MOUSEMOVE);
  1289.     last_object = current_object;
  1290.     current_object = null;
  1291. }
  1292.  
  1293. window.onmousemove=drag_event;
  1294. document.captureEvents(Event.DBLCLICK);
  1295. document.ondblclick = key_press;
  1296.  
  1297. </SCRIPT>
  1298. <3>
  1299. <4><DIV id="theblock" style="position: absolute;top: 50px; left: 20px; width:300px ">
  1300. <a href="" onmousedown="begin_event(theblock,event);return false"
  1301.     onmouseup="end_event();return false"> 
  1302. <!--YOUR TEXT-->
  1303. You can click on and drag either the text or the image on this page. Place one in front of the other, such as the image over this text, and then 
  1304. doubleclick on the text. This moves the object up through the z order.
  1305. <!-- END YOUR TEXT-->
  1306. </a>
  1307. </DIV>
  1308. <DIV id="gotit" style="position: absolute;top:50px; left: 350px;">
  1309. <a href="" onmousedown="begin_event(gotit, event);return false" 
  1310.     onmouseup="end_event();return false">
  1311. <img src="YOUR IMAGE FILE" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT BORDER=0></a>
  1312. </DIV>
  1313. <End>
  1314.  
  1315. "Drag Image"
  1316. <1>This script enables you to drag image (.jpg). Insert Part 1 in your head tags and Part 3 in body of your document. Change YOUR IMAGE FILE. 
  1317. <2><STYLE TYPE="text/css">
  1318. <!--
  1319. #iegear {
  1320. position: absolute;
  1321. left: 100;
  1322. top: 100;
  1323. layer-background-image: url(YOUR IMAGE FILE);
  1324. width: 82;
  1325. clip: rect(0 82 82 0)
  1326. }
  1327. -->
  1328. </STYLE>
  1329. <3>
  1330. <4><DIV ID="iegear"></DIV>
  1331. <SCRIPT LANGUAGE="JavaScript1.2">
  1332.           <!--
  1333.  
  1334. currentX = currentY = 0;
  1335.  
  1336. function grabGear(gear) {
  1337.     currentX = gear.pageX;
  1338.     currentY = gear.pageY;
  1339.     captureEvents(Event.MOUSEMOVE);
  1340.     onmousemove = moveGear;
  1341.           }
  1342.  
  1343. function moveGear(gear) {
  1344.     distanceX = (gear.pageX - currentX);
  1345.     distanceY = (gear.pageY - currentY);
  1346.     currentX = gear.pageX;
  1347.     currentY = gear.pageY;
  1348.     document.iegear.moveBy(distanceX,distanceY);
  1349.           }
  1350.  
  1351. function dropGear() {
  1352.     releaseEvents(Event.MOUSEMOVE);
  1353. }
  1354.  
  1355.     document.iegear.document.onmousedown = grabGear;
  1356.     document.iegear.document.onmouseup = dropGear;
  1357.           //-->
  1358. </SCRIPT>
  1359. <End>
  1360.  
  1361. "Mouse Over Text"
  1362. <1>Text changes color and becomes link on MoseOver. Insert Part 1 in your head tags and Part 3 in body of your document. Change YOUR LINK and DESCRIPTION. Important: DESCRIPTION (Text) must be the same.
  1363.  
  1364. <2><script language="JavaScript1.2">
  1365.  
  1366. function changeto(){
  1367.  
  1368. setTimeout(changeto1, "1");
  1369. }
  1370.  
  1371. function changeto1() {
  1372.  
  1373. document.layers["text"].document.write("<font color=Blue>
  1374. <a href=YOUR LINK>DESCRIPTION</a></font>");
  1375.  
  1376. document.layers["text"].document.close();
  1377. }
  1378.  
  1379. function changefrom(){
  1380.  
  1381. setTimeout(changefrom1, "1");
  1382. }
  1383.  
  1384. function changefrom1() {
  1385.  
  1386. document.layers["text"].document.write("<font color=red>DESCRIPTION</font>");
  1387. document.layers["text"].document.close();
  1388. }
  1389.  
  1390. function link(){
  1391.  
  1392. }
  1393.  
  1394. </script>
  1395. <3>
  1396. <4><layer name="text" top=150 left=0 width=200 height=30 onmouseover=changeto() onmouseout=changefrom() onmousedown=link()>
  1397. <font color="Red">DESCRIPTION</font>
  1398. </layer>
  1399. <End>
  1400.  
  1401. "Scrolling Text"
  1402. <1>Insert Part 1 in your head tags and Part 3 in body of your document. Change YOUR IMAGE FILE and YOUR TEXT. You can also change positin and size attributes as are top, left...
  1403. <2><script>
  1404.  
  1405. function scrollUP (layerName, NUM) {
  1406. if(document.layers[layerName].top > TOTAL){
  1407. document.layers[layerName].clip.top=
  1408. document.layers[layerName].clip.top+NUM;
  1409. document.layers[layerName].top=
  1410. document.layers[layerName].top-NUM;
  1411. document.layers[layerName].clip.bottom=
  1412. document.layers[layerName].clip.bottom+NUM;
  1413. }
  1414. else{
  1415. return false;
  1416. }
  1417.         }
  1418.  
  1419.  
  1420. function scrollDOWN (layerName, NUM) {
  1421. if(document.layers[layerName].top == TOPPER || document.layers[layerName].top < TOPPER){
  1422. document.layers[layerName].clip.top=
  1423. document.layers[layerName].clip.top-NUM;
  1424. document.layers[layerName].top=
  1425. document.layers[layerName].top+NUM;
  1426. document.layers[layerName].clip.bottom=
  1427. document.layers[layerName].clip.bottom-NUM;
  1428. }
  1429. else{
  1430. return false;
  1431. }
  1432.         }
  1433. </script>
  1434. <3>
  1435. <4><layer name="scrollBox" top="50" left="70" width="260" clip="290,150">
  1436. <P>
  1437. <font color="green">
  1438. <!-- YOUR TEXT -->
  1439. A lot of times, someone who's viewing your pages wants 
  1440. to search for text in that document. Many
  1441. users know that in the menubar, under preferences, 
  1442. you can spawn the "Find dialog box", which will
  1443. do an inline search on the contents of the current 
  1444. window and highlight any text found. 
  1445. ...
  1446. A lot of times, someone who's viewing your pages wants 
  1447. to search for text in that document. Many
  1448. users know that in the menubar, under preferences, 
  1449. you can spawn the "Find dialog box", which will
  1450. do an inline search on the contents of the current 
  1451. window and highlight any text found. 
  1452. ...
  1453. A lot of times, someone who's viewing your pages wants 
  1454. to search for text in that document. Many
  1455. users know that in the menubar, under preferences, 
  1456. you can spawn the "Find dialog box", which will
  1457. do an inline search on the contents of the current 
  1458. window and highlight any text found. 
  1459. <!-- END YOUR TEXT -->
  1460. </font>
  1461. </layer>
  1462.  
  1463. <!-- the UP Button -->
  1464. <layer name="UpButton" left="10" top="60">
  1465. <a href="" onClick="scrollDOWN ('scrollBox',15); return false;">
  1466. <img src="YOUR IMAGE FILE" border=0></a>
  1467. </layer>
  1468.  
  1469. <!-- The Down Button -->
  1470. <layer name="DownButton" left="10" top="140">
  1471. <a href= type="button" onClick="scrollUP ('scrollBox',15); return false;">
  1472. <img src="YOUR IMAGE FILE" border=0></a>
  1473. </layer>
  1474.  
  1475. <P>
  1476.  
  1477. <!-- the end script -->
  1478.  
  1479. <script>
  1480. LNAME2 = "scrollBox";
  1481. TOPPER = document.layers[LNAME2].top - 5;
  1482. HEIGHTER = document.layers[LNAME2].document.height;
  1483. TOTAL = TOPPER - HEIGHTER;
  1484. TOTAL = TOTAL + document.layers[LNAME2].clip.height;
  1485. </script>
  1486. <End>
  1487.  
  1488. "Dynamic Menu Bar"
  1489. <1>Images are not animated gifs. Just insert your .jpg (yes .jpg) or .gif instead of YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT, YOUR URL and YOUR DESCRIPTION. Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onload="cycle()"> or <BODY onload="cycle()">. Insert Part 3 in wherever in body of your document.
  1490. <2><STYLE type="text/css">
  1491.  
  1492.     h2 A { text-decoration: none; color: gold }
  1493.     h2 A:link { color: gold }
  1494.     h2 A:visited { color: gold }
  1495.     #menu1 { position: absolute; left: 0; top: 0; 
  1496.         visibility: hidden}
  1497.     #menu2 { position: absolute; left: 142; top: 0; 
  1498.         visibility: hidden}
  1499.     #menu3 { position: absolute; left: 284; top: 0; 
  1500.         visibility: hidden}
  1501.     #menu4 { position: absolute; left: 192; top: 0; 
  1502.         visibility: hidden}
  1503.     #menu5 { position: absolute; left: 142; top: 192;
  1504.         visibility: hidden }
  1505.     #menu6 { position: absolute; left: 284; top: 192; 
  1506.         visibility: hidden}
  1507.     #title1 { position: absolute; left: 60; top: 60;
  1508.             z-index: 2;  height: 24px; width: 100% }
  1509.     #title2 { position: absolute; top: 60; left: 152;
  1510.             z-index: 2; height: 24px; width: 100%  }
  1511.     #title3 { position: absolute; top: 60; left: 244;
  1512.             z-index: 2; height: 24px; width: 100%  }
  1513.     #title4 { position: absolute; top: 152; left: 60;
  1514.             z-index: 2; height: 24px; width: 100%  }
  1515.     #title5 { position: absolute; top: 152; left: 152;
  1516.             z-index: 2; height: 24px; width: 100% }
  1517.     #title6 { position: absolute; top: 152; left: 244;
  1518.             z-index: 2; height: 24px; width: 100%  }
  1519.     #imagewait { position: absolute; top: 125; 
  1520.             left: 70 }
  1521. </STYLE>
  1522.  
  1523. <SCRIPT language="javascript">
  1524. document.write("");
  1525. </SCRIPT>
  1526.  
  1527. <SCRIPT language="javascript">
  1528.  
  1529. var TimingObjectsX
  1530. var TimingObjectsY
  1531. var currentTick = 0
  1532.  
  1533. var TimingObjectsX = new Array(6)
  1534. var TimingObjectsY = new Array(6)
  1535.     TimingObjectsX[0] = new Array(0,12,25,37,50,90,120,142)
  1536.     TimingObjectsY[0] = new Array(0,12,25,37,50,50,50,50)
  1537.  
  1538.     TimingObjectsX[1] = new Array(142,142,142,142,142,167,200,234)
  1539.     TimingObjectsY[1] = new Array(0,12,25,37,50,50,50,50)
  1540.  
  1541.     TimingObjectsX[2] = new Array(284,271,259,246,234,234,234,234)
  1542.     TimingObjectsY[2] = new Array(0,12,25,37,50,107,122,142)
  1543.  
  1544.     TimingObjectsX[3] = new Array(0,12,25,37,50,50,50,50)
  1545.     TimingObjectsY[3] = new Array(192,179,167,155,142,107,77,50)
  1546.  
  1547.     TimingObjectsX[4] = new Array(142,142,142,142,142,107,77,50)
  1548.     TimingObjectsY[4] = new Array(192,179,167,155,142,142,142,142)
  1549.  
  1550.     TimingObjectsX[5] = new Array(284,271,259,246,234,196,161,142)
  1551.     TimingObjectsY[5] = new Array(192,179,167,155,142,142,142,142)
  1552.  
  1553. function cycle() {
  1554.  
  1555.     currentTick = 0;
  1556.     document.layers["menu1"].visibility="show"
  1557.     document.layers["menu2"].visibility="show"
  1558.     document.layers["menu3"].visibility="show"
  1559.     document.layers["menu4"].visibility="show"
  1560.     document.layers["menu5"].visibility="show"
  1561.     document.layers["menu6"].visibility="show"
  1562.     document.layers["waitimage"].visibility="hidden"
  1563.  
  1564.     setTimeout("MoveObjects()", 400)
  1565. }
  1566.  
  1567. function MoveObjects() {
  1568.     document.layers["menu1"].moveTo
  1569.         (TimingObjectsX[0][currentTick], TimingObjectsY[0][currentTick])
  1570.     document.layers["menu2"].moveTo
  1571.         (TimingObjectsX[1][currentTick], TimingObjectsY[1][currentTick])
  1572.     document.layers["menu3"].moveTo
  1573.         (TimingObjectsX[2][currentTick], TimingObjectsY[2][currentTick])
  1574.     document.layers["menu4"].moveTo
  1575.         (TimingObjectsX[3][currentTick], TimingObjectsY[3][currentTick])
  1576.     document.layers["menu5"].moveTo
  1577.         (TimingObjectsX[4][currentTick], TimingObjectsY[4][currentTick])
  1578.     document.layers["menu6"].moveTo
  1579.         (TimingObjectsX[5][currentTick], TimingObjectsY[5][currentTick])
  1580.  
  1581.     currentTick++
  1582.     if (currentTick < 8) 
  1583.         setTimeout("MoveObjects()", 400)
  1584. }
  1585.  
  1586. </SCRIPT>
  1587.  
  1588. <SCRIPT language="jscript">
  1589.  
  1590. var TimingObjectsX
  1591. var TimingObjectsY
  1592. var currentTick = 0
  1593.  
  1594. var TimingObjectsX = new Array(6)
  1595. var TimingObjectsY = new Array(6)
  1596.     TimingObjectsX[0] = new Array(0,12,25,37,50,90,120,142)
  1597.     TimingObjectsY[0] = new Array(0,12,25,37,50,50,50,50)
  1598.  
  1599.  
  1600.     TimingObjectsX[1] = new Array(142,142,142,142,142,167,200,234)
  1601.     TimingObjectsY[1] = new Array(0,12,25,37,50,50,50,50)
  1602.  
  1603.     TimingObjectsX[2] = new Array(284,271,259,246,234,234,234,234)
  1604.     TimingObjectsY[2] = new Array(0,12,25,37,50,107,122,142)
  1605.  
  1606.     TimingObjectsX[3] = new Array(0,12,25,37,50,50,50,50)
  1607.     TimingObjectsY[3] = new Array(192,179,167,155,142,107,77,50)
  1608.  
  1609.     TimingObjectsX[4] = new Array(142,142,142,142,142,107,77,50)
  1610.     TimingObjectsY[4] = new Array(192,179,167,155,142,142,142,142)
  1611.  
  1612.     TimingObjectsX[5] = new Array(284,271,259,246,234,196,161,142)
  1613.     TimingObjectsY[5] = new Array(192,179,167,155,142,142,142,142)
  1614.  
  1615. function cycle() {
  1616.  
  1617.     currentTick = 0;
  1618.     document.all.menu1.style.visibility="inherit";
  1619.     document.all.menu2.style.visibility="inherit";
  1620.     document.all.menu3.style.visibility="inherit";
  1621.     document.all.menu4.style.visibility="inherit";
  1622.     document.all.menu5.style.visibility="inherit";
  1623.     document.all.menu6.style.visibility="inherit";
  1624.     document.all.imagewait.style.visibility="hidden"
  1625.  
  1626.     setTimeout("MoveObjects()", 400)
  1627. }
  1628.  
  1629. function MoveObjects() {
  1630.     document.all.menu1.style.posLeft= TimingObjectsX[0][currentTick];
  1631.     document.all.menu1.style.posTop = TimingObjectsY[0][currentTick];
  1632.     document.all.menu2.style.posLeft= TimingObjectsX[1][currentTick];
  1633.     document.all.menu2.style.posTop = TimingObjectsY[1][currentTick];
  1634.     document.all.menu3.style.posLeft= TimingObjectsX[2][currentTick];
  1635.     document.all.menu3.style.posTop = TimingObjectsY[2][currentTick];
  1636.     document.all.menu4.style.posLeft= TimingObjectsX[3][currentTick];
  1637.     document.all.menu4.style.posTop = TimingObjectsY[3][currentTick];
  1638.     document.all.menu5.style.posLeft= TimingObjectsX[4][currentTick];
  1639.     document.all.menu5.style.posTop = TimingObjectsY[4][currentTick];
  1640.     document.all.menu6.style.posLeft= TimingObjectsX[5][currentTick];
  1641.     document.all.menu6.style.posTop = TimingObjectsY[5][currentTick];
  1642.  
  1643.     currentTick++
  1644.     if (currentTick < 8) 
  1645.         setTimeout("MoveObjects()", 400)
  1646. }
  1647.  
  1648. </SCRIPT>
  1649. <3><BODY onload="cycle()">
  1650. <4><!-- Recomanded dimensions: width=85 height=90 -->
  1651. <layer name="menu1" left=0 top=0 visibility="hidden">
  1652. <a href="YOUR URL #2"><img src="YOUR IMAGE FILE #2" id=menu1 
  1653.     border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1654. </layer>
  1655.  
  1656. <layer name="menu2" left=142 top=0 visibility="hidden">
  1657. <a href="YOUR URL #3"><img src="YOUR IMAGE FILE #3" id=menu2
  1658.       border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1659. </layer>
  1660.  
  1661. <layer name="menu3" left=284 top=0 visibility="hidden">
  1662. <a href="YOUR URL #6"><img src="YOUR IMAGE FILE #6" id=menu3
  1663.     border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1664. </layer>
  1665.  
  1666. <layer name="menu4" left=0 top=192 visibility="hidden">
  1667. <a href="YOUR URL #1"><img src="YOUR IMAGE FILE #1" id=menu4 
  1668.     border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1669. </layer>
  1670.  
  1671. <layer name="menu5" left=142 top=192 visibility="hidden">
  1672. <a href="YOUR URL #4"><img src="YOUR IMAGE FILE #4" id=menu5
  1673.     border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1674. </layer>
  1675.  
  1676. <layer name="menu6" left=284 top=192 visibility="hidden">
  1677. <a href="YOUR URL #5"><img src="YOUR IMAGE FILE #5" id=menu6
  1678.     border=0 WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT></a>
  1679. <!-- Recomanded dimensions: width=85 height=90 -->
  1680. </layer>
  1681.  
  1682. <LAYER name="waitimage">
  1683. <DIV id=imagewait>
  1684. <h4>Images for menu bar are loading...please wait</h4>
  1685. </DIV>
  1686. </LAYER>
  1687.  
  1688. <DIV id=title1>
  1689. <h2><a href="YOUR URL #1">Site #1</a></h2>
  1690. </DIV>
  1691.  
  1692. <DIV id=title2>
  1693. <h2><a href="YOUR URL #2">Site #2</a></h2>
  1694. </DIV>
  1695.  
  1696. <DIV id=title3>
  1697. <h2><a href="YOUR URL #3">Site #3</a></h2>
  1698. </DIV>
  1699.  
  1700. <DIV id=title4>
  1701. <h2><a href="YOUR URL #4">Site #4</a></h2>
  1702. </DIV>
  1703.  
  1704. <DIV id=title5>
  1705. <h2><a href="YOUR URL #5">Site #5</a></h2>
  1706. </DIV>
  1707.  
  1708. <DIV id=title6>
  1709. <h2><a href="YOUR URL #6">Site #6</a></h2>
  1710. </DIV>
  1711. <End>
  1712.  
  1713. ==========IE4=========================================
  1714. "Contents"
  1715. <1>Titles get highlighted, decriptions get appeared. Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 3 in wherever in body of your document. Change YOUR TITLE and DESCRIPTION. You can also change font attributes (font-size, color...) 
  1716. <2><STYLE>
  1717. BODY
  1718. {font-family: Impact;
  1719. font-size: 18pt;
  1720. text-indent: 20;
  1721. line-height: 200%;
  1722. background: black;
  1723. color: white;}
  1724.  
  1725. H1
  1726. {font-size: 32pt;
  1727.  color: green;}
  1728.  
  1729. .over
  1730. {font-size: 20pt;
  1731. color: red;
  1732.  
  1733. </STYLE>
  1734. <3>
  1735. <4><H1 ALIGN=CENTER>YOUR TITLE</H1>
  1736.  
  1737. <DIV onMouseOver="this.className='over';
  1738. Description.innerText='DESCRIPTION #1'"
  1739. onMouseOut="this.className=''; Description.innerText=' '">YOUR TITLE #1</DIV>
  1740.  
  1741. <DIV onMouseOver="this.className='over';
  1742. Description.innerText='DESCRIPTION #2'"
  1743. onMouseOut="this.className=''; Description.innerText=' '" >YOUR TITLE #2</DIV>
  1744.  
  1745. <DIV onMouseOver="this.className='over';
  1746. Description.innerText='DESCRIPTION #3'"
  1747. onMouseOut="this.className=''; Description.innerText=' '">YOUR TITLE #3</DIV>
  1748.  
  1749. <DIV ALIGN=Left ID="Description" >  </DIV>
  1750. <End>
  1751.  
  1752. "Resizing image with link"
  1753. <1>On mose over image gets "bubbled". It can be either .jpg or .gif. It's also a link. Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 3 in wherever in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT and YOUR URL. 
  1754. <2><script language="JavaScript1.2">
  1755.  
  1756. function expand() {
  1757.     if (smallslot.width<=110) {
  1758.         x=window.setTimeout('expand()', 10)
  1759.         smallslot.width=smallslot.width + 5
  1760.         smallslot.height=smallslot.height + 5
  1761.     }
  1762.     else {
  1763.         setTimeout('reduce()', 0)
  1764. }
  1765.     }
  1766.  
  1767. function reduce() {
  1768.     if (smallslot.width>99) {
  1769.         x=window.setTimeout('reduce()', 10)
  1770.         smallslot.width=smallslot.width - 5
  1771.         smallslot.height=smallslot.height - 5
  1772.     }
  1773. }
  1774. </script>
  1775. <3>
  1776. <4><div id="slot1" style="width:YOUR WIDTH;height:YOUR HEIGHT" onmouseover=expand()>
  1777. <a href="YOUR URL">
  1778. <IMG id="smallslot" SRC="YOUR IMAGE FILE" WIDTH=YOUR WIDTH HEIGHT=YOUR HEIGHT hspace=0 vspace=0 border=0 style="position:absolute; left:296; top:104;z index:2;visibility:visible"></a>
  1779. </div>
  1780. <End>
  1781.  
  1782. "Drag and Drop"
  1783. <1>Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 2 inside your body code. An example is:<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="init()"> or <BODY onLoad="init()">. insert Part 3 in wherever in body of your document. Change YOUR IMAGE FILE, YOUR WIDTH, YOUR HEIGHT. You can also change and position (left, top, ...). 
  1784. <2><SCRIPT LANGUAGE="JavaScript">
  1785. <!--
  1786.  
  1787. drag = 0
  1788. move = 0
  1789.  
  1790. function init() {
  1791.     window.document.onmousemove = mouseMove
  1792.     window.document.onmousedown = mouseDown
  1793.     window.document.onmouseup = mouseUp
  1794.     window.document.ondragstart = mouseStop
  1795. }
  1796.  
  1797. function mouseDown() {
  1798.     if (drag) {
  1799.         clickleft = window.event.x - parseInt(dragObj.style.left)
  1800.         clicktop = window.event.y - parseInt(dragObj.style.top)
  1801.         dragObj.style.zIndex += 1
  1802.         move = 1
  1803.     }
  1804. }
  1805.  
  1806. function mouseStop() {
  1807.     window.event.returnValue = false
  1808. }
  1809.  
  1810. function mouseMove() {
  1811.     if (move) {
  1812.         dragObj.style.left = window.event.x - clickleft
  1813.         dragObj.style.top = window.event.y - clicktop
  1814.     }
  1815. }
  1816.  
  1817. function mouseUp() {
  1818.     move = 0
  1819. }
  1820.  
  1821.  
  1822.  
  1823. //-->
  1824. </SCRIPT>
  1825. <3><BODY onLoad="init()">
  1826. <4><DIV ID="block1" onMouseOver="dragObj=block1; drag=1;" onMouseOut="drag=0"
  1827. STYLE="position:absolute; left:200; top:200; width:90; height:90;">
  1828. <img src="YOUR IMAGE FILE" width=YOUR WIDTH height=YOUR HEIGHT alt="DragMe" border="0">
  1829. </DIV>
  1830. <End>
  1831.  
  1832. "Rotating image"
  1833. <1>Image is not animated gif. Just insert your .jpg (yes .jpg) or .gif instead of YOUR IMAGE FILE. Important: YOUR WIDTH DAC and YOUR HEIGHT DAC are dimensions DAControl used in this script and your Image should fit in frame of DAControl. Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body of your document. 
  1834. <2><SCRIPT LANGUAGE="JScript">
  1835. <!--
  1836. if (window.top.frames.length!=0 && window.top.frames[0].ShowNoButtons!=null)
  1837.     window.top.frames[0].ShowNoButtons();
  1838. //-->
  1839. </SCRIPT>
  1840. <3>
  1841. <4><OBJECT ID="DAControl" WIDTH=YOUR WIDTH DAC HEIGHT=YOUR HEIGHT DAC ALIGN=Center CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">
  1842. </OBJECT>
  1843.  
  1844. <SCRIPT LANGUAGE="JScript">
  1845. <!--
  1846.   m = DAControl.PixelLibrary; 
  1847.    
  1848.   img = m.ImportImage("YOUR IMAGE FILE");    
  1849.  
  1850.   // rotate at the rate of 30 degrees per second
  1851.   rotImg = img.Transform(m.Rotate2RateDegrees(-30));
  1852.  
  1853.   DAControl.Image = rotImg;
  1854.  
  1855.   DAControl.Start()
  1856. //-->
  1857. </SCRIPT>
  1858. <End>
  1859.  
  1860. "Side Bar - Left"
  1861. <1>Cool menu bar with client side image maps. You should create your image maps. The easiest way is to use same dimensions for image, same filename and mapname as they are already set within this script and change COORDINATES only, adding your links (URL1, URL2....). Sample image is included. Insert Part 3 as your body.
  1862. <2>
  1863. <3>
  1864. <4><BODY rightmargin=0 leftmargin=0 topmargin=0  text="#black">
  1865.  
  1866. <SCRIPT language=javascript>
  1867.  
  1868. <!--  BUTTON ANIMATION  -->
  1869. function animate(onOrOff) {
  1870.     if (onOrOff == 1) {
  1871.         button.mouseIn = 1;
  1872.         timer = window.setTimeout("moveButton(1);", 0, "JavaScript");
  1873.     } else {
  1874.         button.mouseIn = 0;
  1875.         timer = window.setTimeout("moveButton(0);", 0, "JavaScript");
  1876.     }
  1877. }
  1878.  
  1879.  
  1880. function moveButton(onOrOff) {
  1881.     if (onOrOff == 1 && button.mouseIn == 1) {
  1882.         if (button.style.posLeft < 0) {
  1883.             button.style.posLeft = button.style.posLeft + 10;
  1884.             timer = window.setTimeout("moveButton(1);", 0, "JavaScript");
  1885.         }
  1886.     } else {
  1887.         if (button.mouseIn == 0 && button.style.posLeft > -100) {
  1888.             button.style.posLeft = button.style.posLeft - 10;
  1889.             timer = window.setTimeout("moveButton(0);", 0, "JavaScript");
  1890.         }
  1891.     }
  1892. }
  1893.  
  1894. <!--  END OF BUTTON ANIMATION  -->
  1895.  
  1896. </SCRIPT>
  1897.  
  1898. <!-- BUTTON  -->
  1899. <!--Use Imagemap to create multiple links-->
  1900. <!-- This Image Map was created by Dutch's HTML Editor-->
  1901. <!-- http://www.dutchsoftware.com/editor-->
  1902.  
  1903. <img id="button" src="navbar.gif" mouseIn=0 USEMAP="#navbar"
  1904. style="border:none; position:absolute; width:130; height:285; top:0; left:-100; z-index:2"
  1905. onMouseOver=animate(1) onMouseOut=animate(0)></a>
  1906.  
  1907. <MAP NAME="navbar">
  1908. <!-- COORDINATES  -->
  1909. <AREA SHAPE=RECT COORDS="88, 18, 44, 0" HREF="URL1">
  1910. <AREA SHAPE=RECT COORDS="88, 45, 35, 19" HREF="URL2">
  1911. <AREA SHAPE=RECT COORDS="87, 93, 44, 55" HREF="URL3">
  1912. <AREA SHAPE=RECT COORDS="86, 129, 45, 103" HREF="URL4">
  1913. <AREA SHAPE=RECT COORDS="87, 177, 39, 139" HREF="URL5">
  1914. <AREA SHAPE=RECT COORDS="87, 197, 30, 180" HREF="URL6">
  1915. <AREA SHAPE=RECT COORDS="87, 217, 13, 202" HREF="URL7">
  1916. <AREA SHAPE=RECT COORDS="86, 252, 10, 225" HREF="URL8">
  1917. <AREA SHAPE=RECT COORDS="87, 279, 5, 264" HREF="URL9">
  1918. </MAP>
  1919. <!-- End Image Map-->
  1920. <End>
  1921.  
  1922. "Side Bar - Right"
  1923. <1>Cool menu bar with client side image maps on right side of screen. Apearance is different than menu on left side. You should create your image maps. The easiest way is to use same dimensions for image, same filename and mapname as they are already set within this script and change COORDINATES WITH LINKS only, adding your links (URL1, URL2....). Sample image is included. Insert Part 1 between <HEAD>and</HEAD>, insert Part 2 inside your body code. An example is:<BODY onLoad="StartGlide()" BACKGROUND="graphics/backgrnd.gif" TEXT="White" LINK="#2576CF" VLINK="#000080"> or <BODY onLoad="StartGlide()"> . Insert Part 3 in your body.
  1924. <2><STYLE TYPE="text/css">
  1925. #text {
  1926. POSITION: absolute;
  1927. Z-INDEX: 1;
  1928. width: 175;
  1929. LEFT: 10px;
  1930. TOP: 10px;}
  1931. </style>
  1932.  
  1933. <SCRIPT LANGUAGE="JScript">
  1934. var id;
  1935. function StartGlide(){    document.all.Banner.style.pixelLeft = 
  1936.         document.body.offsetWidth;
  1937.     document.all.Banner.style.visibility = "visible";
  1938.     id = window.setInterval("Glide()",50);} //controls speed
  1939.     function Glide(){
  1940.     document.all.Banner.style.pixelLeft -= 10;
  1941.     if (document.all.Banner.style.pixelLeft<=538) {
  1942.         document.all.Banner.style.pixelLeft=538;
  1943.         document.all.Banner.style.layer=2;
  1944.         window.clearInterval(id);
  1945.     }}</SCRIPT>
  1946.  
  1947. <SCRIPT LANGUAGE="JScript">
  1948. var id;
  1949. function Glideback(){
  1950.     document.all.Banner.style.pixelLeft = 538;  
  1951.     document.all.Banner.style.visibility = "visible";
  1952.     id = window.setInterval("Glidex()",50);}
  1953.  
  1954.     function Glidex(){
  1955.     document.all.Banner.style.pixelLeft += 10;
  1956.     if (document.all.Banner.style.pixelLeft>=700)
  1957.     {
  1958.         document.all.Banner.style.visibility = "hidden";
  1959.         //document.all.Banner.style.pixelLeft= document.body.offsetWidth;
  1960.         window.clearInterval(id);
  1961.     }}</SCRIPT>
  1962.     
  1963. <SCRIPT LANGUAGE="JavaScript">
  1964. window.onerror=null
  1965. </script>
  1966. <3><BODY onLoad="StartGlide()">
  1967. <4><!--Start write sliding menu only if IE4-->
  1968. <SCRIPT LANGUAGE = "JavaScript">
  1969. <!--
  1970. bName = navigator.appName;
  1971. bVer = parseInt(navigator.appVersion);
  1972.  
  1973. if      (bName == "Netscape" && bVer >= 4) br = "n4";
  1974. else if (bName == "Netscape" && bVer == 3) br = "n3";
  1975. else if (bName == "Microsoft Internet Explorer" && bVer >= 4) br = "e4";
  1976. else if (bName == "Microsoft Internet Explorer") br = "e3";
  1977. else br = "n2";
  1978.  
  1979. //IE 4 button.
  1980.  
  1981. //Notes:  dhtmlpage.html is the page on which the DHTML animations will appear
  1982. //the top and left coordinates will place the text on the page using style sheets
  1983.  
  1984. if (br == "e4") {
  1985.  
  1986. document.write('<IMG ID="Banner" STYLE="visibility:hidden;position:absolute;top:0; left:0; z-index:2; cursor: hand" SRC="navbar2.gif" border=0 USEMAP="#map0">');
  1987.  
  1988. }
  1989.  
  1990. // For every other browser.
  1991. // writes nothing to the screen
  1992. else { 
  1993. document.write('<!--null-->');
  1994.  
  1995. }
  1996. // -->
  1997. </SCRIPT>
  1998.  
  1999. <MAP NAME="map0">
  2000. <!--DO NOT CHANGE NEXT LINE-->
  2001. <AREA SHAPE="rect" ALT="rect" COORDS="2,0,16,164" onclick="Glideback()" border=0>
  2002. <!--DO NOT CHANGE PREVIOUS LINE-->
  2003. <!--COORDINATES WITH LINKS-->
  2004. <AREA SHAPE="rect" ALT="rect" COORDS="1,262,71,290" HREF="URL1">
  2005. <AREA SHAPE="rect" ALT="rect" COORDS="1,226,78,254" HREF="URL2">
  2006. <AREA SHAPE="rect" ALT="rect" COORDS="1,202,86,218" HREF="URL3">
  2007. <AREA SHAPE="rect" ALT="rect" COORDS="21,139,71,179" HREF="URL4">
  2008. <AREA SHAPE="rect" ALT="rect" COORDS="21,102,77,132" HREF="URL5">
  2009. <AREA SHAPE="rect" ALT="rect" COORDS="21,55,64,95" HREF="URL6">
  2010. <AREA SHAPE="rect" ALT="rect" COORDS="20,18,77,47" HREF="URL7">
  2011. </MAP>
  2012. <!--End write sliding menu only if IE4-->
  2013. <End>
  2014.  
  2015. "Squash logo"
  2016. <1>Cool logo with two pictures. It is not animated GIF! You can use either GIFs or JPGs. Insert Part 1 in between <HEAD>and</HEAD> tags, Part 2 within your <BODY> tag. An example is:<BODY onload="init()" BACKGROUND="graphics/backgrnd.gif" TEXT="FFFFFF" LINK="#2576CF" VLINK="#000080"> or <BODY onload="init()">. Insert Part 3 in body of your docment. Replace YOURPIC1, YOURPIC2, YOURPICWIDTH and YOURPICHEIGHT
  2017. <2><SCRIPT LANGUAGE="JAVASCRIPT">
  2018. <!--Variable initalization-->
  2019. presents=new Image();
  2020. presents.src="rem.gif";    
  2021. presents=new Image();
  2022. presents.src="newadventures.gif";
  2023.  
  2024. var pwhratio = 164/53;   //ratio of width to height for REM image
  2025. var nwhratio = 400/53;   //ratio of width to height for NewAdventures image
  2026. var increment = 8;
  2027. var step = 24;  // number of increments required to grow to full size (188 / 4)
  2028. var i = 0;
  2029. var x;
  2030. var startH = 0;  //starting width for the image
  2031. var endH = 188;
  2032. var squashedL;
  2033. var squashedW;
  2034.  
  2035. function init() {
  2036.   //Seq("seq").at(0.500, "doTrans(logo)");
  2037.   Seq("seq").at(0.900, "remPath.play()");
  2038.   Seq("seq").at(3.500, "advenPath.play()");
  2039.   //Seq("seq").at(5.00, "doTrans(subscribe)");
  2040.   Seq("seq").Play();
  2041. }
  2042. <!--Squash Function for PIC1 logo-->
  2043. function squashPres() {                           //original width = 164
  2044.    presents=document.all('presents');
  2045.    presents.style.width = (presents.origW - (increment * i));
  2046.    presents.style.height= presents.origH;
  2047.    if (i < 14) {
  2048.       i++;
  2049.       setTimeout ('squashPres();',2);
  2050.    } else {
  2051.      i=0;
  2052.      squashedW = presents.width;
  2053.      expandPres();
  2054.    }
  2055. }
  2056. <!--Expand Back function for PIC1 logo-->
  2057. function expandPres() {
  2058.    presents=document.all('presents');
  2059.    presents.style.width = (squashedW + (increment * i));
  2060.    presents.style.height= presents.origH;
  2061.    if (i < 14) {
  2062.      i++;
  2063.      setTimeout ('expandPres();',2);
  2064.    } else {
  2065.      i=0;
  2066.      presents.style.width = presents.origW;
  2067.    }
  2068. }
  2069.  
  2070.  
  2071. </SCRIPT>
  2072.  
  2073. <SCRIPT FOR=remPath Event=onstop LANGUAGE="JSCRIPT">
  2074.   squashPres();
  2075. </SCRIPT>
  2076. <3><BODY onload="init()">
  2077. <4><!--Sequencing Object-->
  2078. <OBJECT ID="Seq"
  2079.     CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">
  2080. </OBJECT>
  2081.  
  2082. <!--REM path object-->
  2083. <OBJECT ID="remPath" CLASSID = "CLSID:D7A7D7C3-D47F-11D0-89D3-00A0C90833E6">
  2084.         <PARAM NAME="AutoStart" VALUE="0">
  2085.         <PARAM NAME="Bounce" VALUE="0">
  2086.         <PARAM NAME="Duration" VALUE="1.0">
  2087.         <PARAM NAME="Shape" VALUE="Polyline(2, 700,100, 252,100)">
  2088.         <PARAM NAME="Target" VALUE="presents">
  2089. </OBJECT>
  2090.  
  2091. <!--New Adventures Path Object-->
  2092. <OBJECT ID="advenPath" CLASSID = "CLSID:D7A7D7C3-D47F-11D0-89D3-00A0C90833E6">
  2093.         <PARAM NAME="AutoStart" VALUE="0">
  2094.         <PARAM NAME="Bounce" VALUE="0">
  2095.         <PARAM NAME="Duration" VALUE="1.0">
  2096.         <PARAM NAME="Shape" VALUE="Polyline(2, 700,150, 135,150)">
  2097.         <PARAM NAME="Target" VALUE="newadven">
  2098. </OBJECT>
  2099.  
  2100. <DIV ID="wholething" style="position:absolute;top:-80;left:0">
  2101.  
  2102. <!--PICFILES TO REPLACE-->
  2103. <IMG ID="presents" SRC="YOURPIC1"
  2104. STYLE="position:absolute;top:100;left:700;visibility:visible" origW=YOURPICWIDTH origH=YOURPICHEIGHT origL=270>
  2105. <IMG ID="newadven" SRC="YOURPIC2" 
  2106. STYLE="position:absolute;top:150;left:700;visibility:visible" origW=YOURPICWIDTH origH=YOURPICHEIGHT origL=270 BORDER=0>
  2107. </DIV>
  2108. <End>
  2109.  
  2110. "Rotating Ticker"
  2111. <1>This script flips three bars with links. The time controls are in the onload commmand in the BODY tag. Default is 5 seconds(5000 miliseconds) between page flips and can be changed. You can also play with position of your bars and fonts changeig them within "<div style... >" and "<div ID...>" lines. You have to change your urls(URL_1_1, URL_1_2...) and your descriptions(DESCRIPTION_1_1, DESCRIPTION_1_2...). Insert Part 1 in between <HEAD>and</HEAD> tags, Part 2 as your <BODY> tag and Part 3 in body of your document.
  2112. <2><!--Rotating Ticker Script-->
  2113. <SCRIPT LANGUAGE="JavaScript">
  2114. <!--
  2115.  
  2116. var bName = navigator.appName;
  2117. var bVer = parseInt(navigator.appVersion);
  2118. var NS4 = (bName == "Netscape" && bVer >= 4);
  2119. var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
  2120. if (NS4 || IE4) {
  2121.   var i = 0; // global counter variable
  2122.   var ar = new Array();
  2123. <!--Rotating Ticker 1 -->
  2124.   ar[0] = '<a href="URL_1_1">DESCRIPTION_1_1</a> | <a href="URL_1_2">DESCRIPTION_1_2</a> | <a href="URL_1_3">DESCRIPTION_1_3</a> | <a href="URL_1_4">DESCRIPTION_1_4</a>';
  2125. <!--Rotating Ticker 2 -->  
  2126.   ar[1] = '<a href="URL_2_1">DESCRIPTION_2_1</a> | <a href="URL_2_2">DESCRIPTION_2_2</a> | <a href="URL_2_3">DESCRIPTION_2_3</a> | <a href="URL_2_4">DESCRIPTION_2_4</a>';
  2127. <!--Rotating Ticker 3 -->
  2128.   ar[2] = '<a href="URL_3_1">DESCRIPTION_3_1</a> | <a href="URL_3_2">DESCRIPTION_3_2</a> | <a href="URL_3_3">DESCRIPTION_3_3</a> | <a href="URL_3_4">DESCRIPTION_3_4</a>';
  2129. }
  2130.  
  2131. function display(id, str) {
  2132.   if (NS4) { // if Navigator 4.0+
  2133.     with (document[id].document) {
  2134.       open(); // open document
  2135.       write(str); // write to document
  2136.       close(); // close document
  2137.     }
  2138.   } else { // Internet Explorer 4.0+
  2139.     document.all[id].innerHTML = str; // "assign" to element
  2140.   }
  2141. }
  2142.  
  2143. function update(num) {
  2144.   display("banner", ar[i]);
  2145.   i++; // increment counter
  2146.   if (i == num)
  2147.     i = 0; // back to first text (link)
  2148. }
  2149.  
  2150. // -->
  2151. </SCRIPT>
  2152. <3><BODY onLoad="if (NS4 || IE4) setInterval('update(' + ar.length + ')', 5000);">
  2153. <4><!--ticker border divs-->
  2154. <div style="position:absolute; left:21; top:194; width:577; height:19; z-index:1; border: solid 1px #999999"></div>
  2155. <div style="position:absolute; left:20; top:193; width:577; height:20; z-index:1; border: solid 1px #CCCCCC"></div>
  2156.  
  2157. <!--New Ticker-->
  2158. <!--Rotating Ticker 1 -->
  2159. <div ID="banner" style="position:absolute; left:80; top:198; font-family: Verdana, sans-serif; font-size: 10.5; font-weight: 700;; width:576; height:24; z-index:11;visibility:visible">
  2160. <a href="URL_1_1">DESCRIPTION_1_1</a> | 
  2161. <a href="URL_1_2">DESCRIPTION_1_2</a> | 
  2162. <a href="URL_1_3">DESCRIPTION_1_3</a> | 
  2163. <a href="URL_1_4">DESCRIPTION_1_4</a>
  2164. </div>
  2165. <End>
  2166.  
  2167. "Blending two images"
  2168. <1>This script uses blend transitons. It looks realy cool. You can set either GIFs or JPGs. Try changing parametars in "<div id...>" line adjusting them according to dimensions of your images. Insert Part 1 between your <HEAD>and</HEAD> tags and Part 3 in body of your document. Replace IMAGE1 and IMAGE2 with your files.
  2169. <2><SCRIPT FOR=window EVENT=onload LANGUAGE=JavaScript> 
  2170.  
  2171.  flttgt.filters[0].Apply(); 
  2172.  flttgt.innerHTML = "<img src=IMAGE1 align=center>"; 
  2173.  flttgt.filters[0].Play(); 
  2174.  
  2175. </script> 
  2176. <3>
  2177. <4><div id="flttgt" style="position:relative;width:550;height:250;top:20;left:20;text-align:center;background-color:white;filter:blendTrans(duration=8)"> 
  2178. <img src=IMAGE2>
  2179. </div>
  2180. <End>
  2181.  
  2182. "Reveal Transitons"
  2183. <1>This script uses Reveal Transitons. There are 23 different filters and you can change value of transition from 0 to 22. Value 23 sets filters randomly. It's part of "<div id..." line in brackets and it's set as circle: "...(transition=3,duration=8)">". You can set either GIFs or JPGs. Try changing parametars in "<div id...>" line adjusting them according to dimensions of your images. Insert Part 1 between your <HEAD>and</HEAD> tags and Part 3 in body of your document. Replace IMAGE1 and IMAGE2 with your files.
  2184. <2><SCRIPT FOR=window EVENT=onload LANGUAGE=JavaScript>
  2185.  
  2186.  flttgt.filters[0].Apply(); 
  2187.  flttgt.innerHTML = "<img src=IMAGE1 align=center>"; 
  2188.  flttgt.filters[0].Play(); 
  2189.   
  2190. </script>
  2191. <3>
  2192. <4><!--TRY CHANGING VALUE OF TRANSITION FROM 0 TO 23-->
  2193. <div id="flttgt"
  2194. style="position:relative;width:550;height:250;top:20;left:20;text-align:center;background-color:white;filter:revealTrans(transition=3,duration=8)"> 
  2195. <img src=IMAGE2>
  2196. </div>
  2197. <End>
  2198.  
  2199. "Changing Colors"
  2200. <1>This script changes colors of your text. Insert Part 1 between your <HEAD>and</HEAD> tags, Part 2 in your <BODY> tag and Part 3 in body of your document. Change YOUR TEXT HERE!.
  2201. <2><SCRIPT LANGUAGE="JavaScript"><!--
  2202. function frameTest(){
  2203.     if(top==self) {
  2204.         var parent = "/ie/ie40/demos/default.htm"
  2205.         var currURL = unescape(window.location.pathname);
  2206.         var newURL = parent + "?" + currURL;
  2207.         var appVer = navigator.appVersion;
  2208.         var NS = (navigator.appName == 'Netscape') && ((appVer.indexOf('3') != -1) || (appVer.indexOf('4') != -1));
  2209.         var MSIE = (appVer.indexOf('MSIE 4') != -1);
  2210.         if (NS || MSIE)
  2211.             location.replace(newURL);
  2212.         else
  2213.             location.href = newURL;
  2214.     }
  2215. }
  2216. //-->
  2217. </SCRIPT>
  2218.  
  2219. <SCRIPT LANGUAGE="JavaScript"><!--
  2220. var ua = navigator.userAgent;
  2221. var win = ua.indexOf('Win') != -1;
  2222. var mac = ua.indexOf("Mac") != -1;
  2223. var isNN = navigator.appName == "Netscape";
  2224. if (mac)
  2225.     leftnav = 'macleft';
  2226. else if (!mac && !win) {
  2227.     if (ua.indexOf("MSIE 4") != -1)
  2228.         leftnav = 'unixIEleft';
  2229.     else if (isNN)
  2230.         leftnav = 'unixNNleft';}
  2231. else if (ua.indexOf("MSIE 3") != -1)
  2232.     leftnav = 'ie3left';
  2233. else if (isNN)
  2234.     leftnav = 'nav4left';
  2235. else
  2236.     leftnav = 'ie4left';
  2237. document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/ie/global/' + leftnav + '.css">');
  2238. //--></SCRIPT>
  2239.  
  2240. <STYLE><!--
  2241. .btop {text-decoration:none; color:black;}
  2242. .btop:hover {text-decoration:underline; color:red;}
  2243. .Item {
  2244.    cursor: hand;
  2245.    font-family: verdana;
  2246.    font-size: 20;
  2247.    font-style: normal;
  2248.    background-color: blue;
  2249.    color: white
  2250.  }
  2251. .Highlight {
  2252.    cursor: hand;
  2253.    font-family: verdana;
  2254.    font-size: 20;
  2255.    font-style: italic;
  2256.    background-color: white;
  2257.    color: blue
  2258.  }
  2259. --></STYLE>
  2260. <3><BODY onLoad="frameTest()">
  2261. <4><!--YOU CAN CHANGE HEADINGS H1 TO H6 AND FONT-FAMILY-->
  2262. <h1 id=MainH1 style="font-family: verdana">YOUR TEXT HERE!</h1>
  2263.  
  2264. <script>
  2265. var initialColor;
  2266. initialColor = 0;
  2267. initialR = 254;
  2268. initialG = 2;
  2269. initialB = 128;
  2270. rIncrement = -1;
  2271. gIncrement = 1;
  2272. bIncrement = -1;
  2273.  
  2274. function tick() {
  2275.    var hexR, hexG, hexB;
  2276.  
  2277.    hexR = intToHex(initialR);
  2278. //alert(hexR);
  2279.    hexG = intToHex(initialG);
  2280. //alert(hexG);
  2281.    hexB = intToHex(initialB);
  2282. //alert(hexB);
  2283.  
  2284.    initialR += rIncrement;
  2285.    initialG += gIncrement;
  2286.    initialB += bIncrement;
  2287.  
  2288.    if (initialR < 0) {
  2289.      initialR = 255;
  2290.      rIncrement *= -1;
  2291.    } else if (initialR > 255) {
  2292.      initialR = 0;
  2293.    }
  2294.  
  2295.    if (initialG < 0) {
  2296.      initialG = 255;
  2297.      gIncrement *= -1;
  2298.    } else if (initialG > 255) {
  2299.      initialG = 0;
  2300.    }
  2301.  
  2302.    if (initialB < 0) {
  2303.      initialB = 255;
  2304.      bIncrement *= -1;
  2305.    } else if (initialB > 255) {
  2306.      initialB = 0;
  2307.    }
  2308.  
  2309.    hexColor = "#"+hexR+hexG+hexB;
  2310.    MainH1.style.color = hexColor;
  2311.  
  2312.    window.setTimeout("tick();", 10);
  2313. }
  2314.  
  2315. function intToHex(anInt) {
  2316.   var theString;
  2317.   var aDigit, aHexDigit;
  2318.   var i;
  2319.  
  2320.   theString = "";
  2321.  
  2322.   for (i = 1; i >= 0; i--) {
  2323.     p = power(16, i);
  2324.     aDigit = anInt / p;
  2325.     aDigit = round(aDigit);
  2326.     anInt = anInt - (aDigit * p);
  2327.     aHexDigit = digitToHex(aDigit);
  2328.     theString = theString + aHexDigit;
  2329.   }
  2330.  
  2331.   return theString;
  2332. }
  2333.  
  2334.  
  2335.  
  2336. function power(aNumber, aBase) {
  2337.  
  2338.    var rval;
  2339.  
  2340.    if (aBase == 0)
  2341.      return 1;
  2342.  
  2343.    rval = aNumber;
  2344.  
  2345.    for (i=1;i<aBase;i++) {
  2346.       rval = rval * aNumber;
  2347.    }
  2348.  
  2349.    return rval;
  2350. }
  2351.  
  2352. function round(aNumber) {
  2353.   for (i = 16; i >= 0; i--) {
  2354.     if (aNumber >= i)
  2355.        return i;
  2356.    }
  2357.   return 0;
  2358. }
  2359.  
  2360. function digitToHex(aDigit) {
  2361.   if (aDigit < 10)
  2362.      return aDigit;
  2363.   else if (aDigit == 10)
  2364.      return "A";
  2365.   else if (aDigit == 11)
  2366.      return "B";
  2367.   else if (aDigit == 12)
  2368.      return "C";
  2369.   else if (aDigit == 13)
  2370.      return "D";
  2371.   else if (aDigit == 14)
  2372.      return "E";
  2373.   else if (aDigit == 15)
  2374.      return "F";
  2375. }
  2376.  
  2377. window.onload=tick;
  2378.  
  2379. </script>
  2380. <End>
  2381.  
  2382. "An HTML clock"
  2383. <1>Insert Part 1 between your <HEAD>and</HEAD> tags, Part 2 in your <BODY> tag and Part 3 in body of your document.
  2384. <2><SCRIPT LANGUAGE="JavaScript"><!--
  2385. function frameTest(){
  2386.     if(top==self) {
  2387.         var parent = "/ie/ie40/demos/default.htm"
  2388.         var currURL = unescape(window.location.pathname);
  2389.         var newURL = parent + "?" + currURL;
  2390.         var appVer = navigator.appVersion;
  2391.         var NS = (navigator.appName == 'Netscape') && ((appVer.indexOf('3') != -1) || (appVer.indexOf('4') != -1));
  2392.         var MSIE = (appVer.indexOf('MSIE 4') != -1);
  2393.         if (NS || MSIE)
  2394.             location.replace(newURL);
  2395.         else
  2396.             location.href = newURL;
  2397.     }
  2398. }
  2399. //-->
  2400. </SCRIPT>
  2401.  
  2402. <SCRIPT LANGUAGE="JavaScript"><!--
  2403. var ua = navigator.userAgent;
  2404. var win = ua.indexOf('Win') != -1;
  2405. var mac = ua.indexOf("Mac") != -1;
  2406. var isNN = navigator.appName == "Netscape";
  2407. if (mac)
  2408.     leftnav = 'macleft';
  2409. else if (!mac && !win) {
  2410.     if (ua.indexOf("MSIE 4") != -1)
  2411.         leftnav = 'unixIEleft';
  2412.     else if (isNN)
  2413.         leftnav = 'unixNNleft';}
  2414. else if (ua.indexOf("MSIE 3") != -1)
  2415.     leftnav = 'ie3left';
  2416. else if (isNN)
  2417.     leftnav = 'nav4left';
  2418. else
  2419.     leftnav = 'ie4left';
  2420. document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/ie/global/' + leftnav + '.css">');
  2421. //--></SCRIPT>
  2422.  
  2423. <STYLE><!--
  2424. .btop {text-decoration:none; color:black;}
  2425. .btop:hover {text-decoration:underline; color:red;}
  2426. --></STYLE>
  2427. <3><BODY TOPMARGIN=0 LEFTMARGIN=0 onLoad="frameTest()">
  2428. <4><!--YOU CAN CHANGE ATTRIBUTES IN NEXT LINE-->
  2429. <div id=Clock align=center style="font-family: Verdana; font-size:40; color:#0000FF"> </div>
  2430.  
  2431. <script>
  2432. function tick() {
  2433.   var hours, minutes, seconds, ap;
  2434.   var intHours, intMinutes, intSeconds;
  2435.   var today;
  2436.  
  2437.   today = new Date();
  2438.  
  2439.   intHours = today.getHours();
  2440.   intMinutes = today.getMinutes();
  2441.   intSeconds = today.getSeconds();
  2442.  
  2443.   if (intHours == 0) {
  2444.      hours = "12:";
  2445.      ap = "Midnight";
  2446.   } else if (intHours < 12) {
  2447.      hours = intHours+":";
  2448.      ap = "A.M.";
  2449.   } else if (intHours == 12) {
  2450.      hours = "12:";
  2451.      ap = "Noon";
  2452.   } else {
  2453.      intHours = intHours - 12
  2454.      hours = intHours + ":";
  2455.      ap = "P.M.";
  2456.   }
  2457.  
  2458.   if (intMinutes < 10) {
  2459.      minutes = "0"+intMinutes+":";
  2460.   } else {
  2461.      minutes = intMinutes+":";
  2462.   }
  2463.  
  2464.   if (intSeconds < 10) {
  2465.      seconds = "0"+intSeconds+" ";
  2466.   } else {
  2467.      seconds = intSeconds+" ";
  2468.   }
  2469.  
  2470.   timeString = hours+minutes+seconds+ap;
  2471.  
  2472.   Clock.innerHTML = timeString;
  2473.  
  2474.   window.setTimeout("tick();", 100);
  2475. }
  2476.  
  2477. window.onload = tick;
  2478. </SCRIPT>
  2479. <End>
  2480.  
  2481. "Cool Contents"
  2482. <1>Text is being appeared by clicking on submenu. Formating and text attributes can be applayed. With litlle bit of your imagination, you can easily edit this cool script and adjust it on the way u need it. U should replace YOUR TITLE, Sub Title 1, Sub Title 2... Your text... and Your List Item... at least. Insert Part 1 in between your <HAED>and</HEAD> tags, Part 2 within your <BODY> tag and Part 3 in body of your document.
  2483. <2><!--YOU CAN CHANGE FORMATING ATTRIBUTES BETWEEN STYLE TAGS-->
  2484. <STYLE>
  2485.  BODY {background-color: #ffffff;}
  2486.  H2 {color: RGB(127,0,0); margin-left: 0.20in}
  2487.  DIV.sidebar {background-color: 00eeee; margin-left: 0.75in;
  2488.               margin-right: 1.5in; font-family: lucida fax; font-size:12pt}
  2489.  OL {margin-left: 0.75in; margin-right: 1.5in; background-color: gray;
  2490.      color: yellow; font-family: tahoma; font-size: 11pt}
  2491.  CODE {color: #0000FF; margin-left: 0.75in; font-size: 16pt }
  2492.  P.sidebarline {margin-left: 0.75in; margin-right: 1.5in; font-size: 10pt; 
  2493.                 color: #EE0000; font-weight: 600; font-family: Courier }
  2494. </STYLE>
  2495.  
  2496. <SCRIPT language="javascript">
  2497. <!--
  2498.  
  2499. function clicked_element(){
  2500.     var child = document.all[event.srcElement.child];
  2501.     if (child!=null) {
  2502.     child.style.display = child.style.display == "none" ? "" : "none";
  2503.     }
  2504.   }
  2505.  
  2506. //-->
  2507. </SCRIPT>
  2508. <3><body onclick="clicked_element()">
  2509. <4><h1 align=center>YOUR TITLE</h1>
  2510. <p>
  2511. <h6 align=center>Click on Sub Title to see contents</h6>
  2512. <p>
  2513. <h2 child=firstsection>Sub Title 1</H2>
  2514. <DIV id=firstsection style="display:none">
  2515. <P>
  2516. Your text...
  2517. </DIV>
  2518. <p>
  2519. <h2 child=section2>Sub Title 2</h2>
  2520. <DIV id=section2 style="display:none">
  2521. <P>
  2522. Your text...
  2523. </DIV>
  2524. <p>
  2525. <h2 child=section3>Sub Title 3</h2>
  2526. <DIV id=section3 style="display:none">
  2527. <p>
  2528. Your text...
  2529. <p child=sidebar1 class=sidebarline>
  2530. Sub Title 3.1
  2531. </P>
  2532. <DIV id=sidebar1 class=sidebar style="display:none">
  2533. <h3>Sub Title 3.1</h3>
  2534. <p>
  2535. Your text...
  2536. </DIV>
  2537. <p>
  2538. Your text...
  2539. </DIV>
  2540. <p>
  2541. <H2 child=section4>Sub Title 4</H2>
  2542. <DIV id=section4 style="display:none">
  2543. <p>
  2544. Your text...
  2545. </DIV>
  2546. <P>
  2547. <H2 child=section5>Sub Title 5</H2>
  2548. <DIV id=section5 style="display:none">
  2549. <P>
  2550. Your text...
  2551. <p child=sidebar2 class=sidebarline>
  2552. Sub Title 5.1
  2553. </P>
  2554. <DIV class=sidebar id=sidebar2 style="display:none">
  2555. <h3>Sub Title 5.1</h3>
  2556. <p>
  2557. Your text...
  2558. </DIV>
  2559. <p>
  2560. Your text...
  2561. <OL>
  2562. <LI>Your List item...</LI>
  2563. <LI>Your List item...</LI>
  2564. <LI>Your List item...</LI>
  2565. <LI>Your List item...</LI>
  2566. </OL>
  2567. <code>Your text...</code>
  2568. <P>
  2569. <Strong>
  2570. Your text...
  2571. </strong><BR>
  2572. <I>
  2573. Your text...
  2574. </I>
  2575. <p>
  2576. </DIV>
  2577. <End>
  2578.  
  2579. "Path Control"
  2580. <1>Insert Part 1 between yor <HEAD>and</HEAD> tags, Part 2 within <BODY> tag and Part 3 in body of your document. Replace YOURIMAGE, YOURWIDTH and YOURHEIGHT
  2581. <2><SCRIPT LANGUAGE="JAVASCRIPT">
  2582. <!--Init Sequence-->
  2583. function init() {
  2584. robotPath.play();
  2585. }
  2586. </SCRIPT>
  2587. <3><BODY onload="init()">
  2588. <4><!--Sequencing Object-->
  2589. <OBJECT ID="Seq"
  2590.     CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">
  2591. </OBJECT>
  2592.  
  2593. <!-- graphics-->
  2594. <IMG ID="robot" SRC="YOURIMAGE" WIDTH=YOURWIDTH HEIGHT=YOURHEIGHT BORDER=0 STYLE="position:absolute;top:10;left:-100;visibility:visible">
  2595.  
  2596. <!-- path object-->
  2597. <OBJECT ID="robotPath" CLASSID = "CLSID:D7A7D7C3-D47F-11D0-89D3-00A0C90833E6">
  2598.         <PARAM NAME="AutoStart" VALUE="0">
  2599.         <PARAM NAME="Bounce" VALUE="0">
  2600.         <PARAM NAME="Duration" VALUE="2.0">
  2601.       <PARAM NAME="Repeat" VALUE="1">
  2602.         <PARAM NAME="Shape" VALUE="PolyLine(2, 0,150, 350,150)">
  2603.         <PARAM NAME="Target" VALUE="robot">
  2604. </OBJECT>
  2605. <End>
  2606.  
  2607. "Dynamic Content"
  2608. <1>Text is being replaced directly on your Web page. Insert Part 1 between yor <HEAD>and</HEAD> tags, Part 2 within <BODY> tag and Part 3 in body of your document. Replace YOUR TEXT with your text.
  2609. <2><SCRIPT LANGUAGE="JavaScript"><!--
  2610. function frameTest(){
  2611.     if(top==self) {
  2612.           var parent = "/ie/ie40/demos/default.htm"
  2613.         var currURL = unescape(window.location.pathname);
  2614.         var newURL = parent + "?" + currURL;
  2615.         var appVer = navigator.appVersion;
  2616.         var NS = (navigator.appName == 'Netscape') && ((appVer.indexOf('3') != -1) || (appVer.indexOf('4') != -1));
  2617.         var MSIE = (appVer.indexOf('MSIE 4') != -1);
  2618.         if (NS || MSIE)
  2619.             location.replace(newURL);
  2620.         else
  2621.             location.href = newURL;
  2622.     }
  2623. }
  2624. //-->
  2625. </SCRIPT>
  2626.  
  2627. <SCRIPT LANGUAGE="JavaScript"><!--
  2628. var ua = navigator.userAgent;
  2629. var win = ua.indexOf('Win') != -1;
  2630. var mac = ua.indexOf("Mac") != -1;
  2631. var isNN = navigator.appName == "Netscape";
  2632. if (mac)
  2633.     leftnav = 'macleft';
  2634. else if (!mac && !win) {
  2635.     if (ua.indexOf("MSIE 4") != -1)
  2636.         leftnav = 'unixIEleft';
  2637.     else if (isNN)
  2638.         leftnav = 'unixNNleft';}
  2639. else if (ua.indexOf("MSIE 3") != -1)
  2640.     leftnav = 'ie3left';
  2641. else if (isNN)
  2642.     leftnav = 'nav4left';
  2643. else
  2644.     leftnav = 'ie4left';
  2645. document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/ie/global/' + leftnav + '.css">');
  2646. //--></SCRIPT>
  2647.  
  2648. <STYLE><!--
  2649. .btop {text-decoration:none; color:black;}
  2650. .btop:hover {text-decoration:underline; color:red;}
  2651. --></STYLE>
  2652. <3><BODY onLoad="frameTest()">
  2653. <4><DIV ID=ReplaceMe STYLE="font-family: verdana; font-size: 20;">YOUR TEXT</DIV>
  2654. <BR>
  2655. <INPUT ID=T1 TYPE=TEXT STYLE="width:310"> <INPUT TYPE=BUTTON VALUE="Replace" onclick="ReplaceMe.innerHTML = T1.value">
  2656. <End>